[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 1369
Date : Mon Jun 26 16:19:41 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/oilbitmap.cpp
Fix colour ordering problem when loading bitmaps from resources
Diff:
Index: Trunk/XaraLX/wxOil/oilbitmap.cpp
===================================================================
--- Trunk/XaraLX/wxOil/oilbitmap.cpp (revision 1368)
+++ Trunk/XaraLX/wxOil/oilbitmap.cpp (revision 1369)
@@ -3778,9 +3778,10 @@
for (UINT32 XPos = 0; XPos < GetWidth(); XPos++)
{
- ScanlineStart[off++] = *(pData++); //Red
- ScanlineStart[off++] = *(pData++); //Green
- ScanlineStart[off++] = *(pData++); //Blue
+ ScanlineStart[off++] = pData[2]; //Red
+ ScanlineStart[off++] = pData[1]; //Green
+ ScanlineStart[off++] = pData[0]; //Blue
+ pData+=(UINT_PTR)3;
ScanlineStart[off++] = pAlpha?(255-*(pAlpha++)):0; // Alpha
}
}
Xara