Go back to old logic in GdiSelectPalette. Should fix the gdi32_winetest gdiobj regres...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 6 Apr 2009 19:43:25 +0000 (19:43 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 6 Apr 2009 19:43:25 +0000 (19:43 +0000)
svn path=/trunk/; revision=40405

reactos/subsystems/win32/win32k/objects/dcobjs.c

index 7d8a20c..9e15603 100644 (file)
@@ -264,9 +264,10 @@ GdiSelectPalette(
         return NULL;
     }
 
+    // FIXME: This looks wrong
     /* Is this a valid palette for this depth? */
     if ((pdc->rosdc.bitsPerPixel <= 8 && ppal->Mode == PAL_INDEXED) ||
-        (pdc->rosdc.bitsPerPixel > 8  && ppal->Mode != PAL_INDEXED))
+        (pdc->rosdc.bitsPerPixel > 8))
     {
         /* Get old palette, set new one */
         oldPal = pdc->dclevel.hpal;