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

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 911
Date       : Fri Apr 28 10:08:32 BST 2006

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

Removed stupid BGR-RGB swapping WritePalette. I don't think its needed.


Diff:
Index: Trunk/XaraLX/wxOil/oilbitmap.cpp
===================================================================
--- Trunk/XaraLX/wxOil/oilbitmap.cpp	(revision 910)
+++ Trunk/XaraLX/wxOil/oilbitmap.cpp	(revision 911)
@@ -2721,16 +2721,9 @@
 	if (ok) ok = pFilter->Write(Entries);
 	for (UINT32 i = 0; i < NumberOfPaletteEntries; i++)
 	{
-#if defined(__WXMSW__)
-		// Swap BGR for RGB for some random reason
-		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbBlue);
-		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbGreen);
 		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbRed);
-#else
-		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbRed);
 		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbGreen);
 		if (ok) ok = pFilter->Write(BMInfo->bmiColors[i].rgbBlue);
-#endif
 	}
 
 	// During the preparation process we told the system we would update by the


Xara