[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : gerry
Repository : xara
Revision   : 1377
Date       : Wed Jun 28 12:12:26 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/dibutil.cpp

Fixed RGB order issue in Convert24To8


Diff:
Index: Trunk/XaraLX/wxOil/dibutil.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dibutil.cpp	(revision 1376)
+++ Trunk/XaraLX/wxOil/dibutil.cpp	(revision 1377)
@@ -3710,19 +3710,11 @@
 	RGBTRIPLE *pPal = pPalette;
 	for (UINT32 i = 0; i < NumberOfPaletteEntries; i++)
 	{
-#if defined(__WXMSW__)
 		lpPalette->rgbRed = pPal->rgbtRed;
-#else
-		lpPalette->rgbRed = pPal->rgbtBlue;
-#endif
 		pLogPalette->palPalEntry[i].peRed = pPal->rgbtRed;
 		lpPalette->rgbGreen = pPal->rgbtGreen;
 		pLogPalette->palPalEntry[i].peGreen = pPal->rgbtGreen;
-#if defined(__WXMSW__)
 		lpPalette->rgbBlue = pPal->rgbtBlue;
-#else
-		lpPalette->rgbBlue = pPal->rgbtRed;
-#endif
 		pLogPalette->palPalEntry[i].peBlue = pPal->rgbtBlue;
 		pLogPalette->palPalEntry[i].peFlags = 0x00;
 		lpPalette->rgbReserved = 0x00;


Xara