mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
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:
parent
c26c7d7ff5
commit
8ac65d28d3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue