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

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 917
Date       : Fri Apr 28 15:36:13 BST 2006

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

WritePalette BGR-RGB swap back in slightly different form.


Diff:
Index: Trunk/XaraLX/wxOil/oilbitmap.cpp
===================================================================
--- Trunk/XaraLX/wxOil/oilbitmap.cpp	(revision 916)
+++ Trunk/XaraLX/wxOil/oilbitmap.cpp	(revision 917)
@@ -2721,9 +2721,17 @@
 	if (ok) ok = pFilter->Write(Entries);
 	for (UINT32 i = 0; i < NumberOfPaletteEntries; i++)
 	{
+#if !defined(__WXMSW__)
+//TRACEUSER("Phil", _T("WritePalette r=%x g=%x b=%x
"), BMInfo->bmiColors[i].rgbBlue, BMInfo->bmiColors[i].rgbGreen, BMInfo->bmiColors[i].rgbRed);
+		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
+//TRACEUSER("Phil", _T("WritePalette r=%x g=%x b=%x
"), BMInfo->bmiColors[i].rgbRed, BMInfo->bmiColors[i].rgbGreen, BMInfo->bmiColors[i].rgbBlue);
+		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