Author: tkreuzer
Date: Mon Apr  6 23:43:25 2009
New Revision: 40405

URL: http://svn.reactos.org/svn/reactos?rev=40405&view=rev
Log:
Go back to old logic in GdiSelectPalette. Should fix the gdi32_winetest gdiobj 
regression introduced in r40381.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c?rev=40405&r1=40404&r2=40405&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] 
(original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] Mon Apr 
 6 23:43:25 2009
@@ -264,9 +264,10 @@
         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;

Reply via email to