[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 1 Aug 2010 12:24:04 +0000 (12:24 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 1 Aug 2010 12:24:04 +0000 (12:24 +0000)
  - Revert unwanted change and get back to PAL_BGR for default DIB palette mode.
Now yarotows looks like an OS again.

svn path=/branches/reactos-yarotows/; revision=48390

subsystems/win32/win32k/objects/dibobj.c

index 6a75772..010baff 100644 (file)
@@ -1741,16 +1741,7 @@ BuildDIBPalette(CONST BITMAPINFO *bmi)
     }
     else
     {
-               if((pdwColors[0] == 0x0000FF)     /* R */
-                       && (pdwColors[1] == 0x00FF00) /* G */
-                       && (pdwColors[2] == 0xFF0000))/* B */
-               {
-                       paletteType = PAL_BGR;
-               }
-               else
-               {
-                       paletteType == PAL_RGB;
-               }
+               paletteType = PAL_BGR;
     }
 
     if (bmi->bmiHeader.biClrUsed == 0)