[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 818
Date : Fri Apr 14 17:44:01 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/bitfilt.cpp
Fixed buildserver problem by removing bizarre use of floating point to
calculate 2^N.
Diff:
Index: Trunk/XaraLX/Kernel/bitfilt.cpp
===================================================================
--- Trunk/XaraLX/Kernel/bitfilt.cpp (revision 817)
+++ Trunk/XaraLX/Kernel/bitfilt.cpp (revision 818)
@@ -4447,7 +4447,7 @@
// Now do an export render pass, using the Palette Region
if (ExportRender(pPalRegion))
{
- UINT32 MaxColours = UINT32(pow(2,Depth));
+ UINT32 MaxColours = 1U<<Depth; // let's not use floating point here - UINT32(pow(2,Depth));
if (NumColsInPalette < 1)
NumColsInPalette = MaxColours;
Xara