Go back to old logic in GdiSelectPalette. Should fix the gdi32_winetest gdiobj regression introduced in r40381.

svn path=/trunk/; revision=40405
This commit is contained in:
Timo Kreuzer 2009-04-06 19:43:25 +00:00
parent c26c7d7ff5
commit 8ac65d28d3

View 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;