From 53fe62ce9c902fff26afbb8253d33b68b1425cbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 2 Aug 2010 01:09:36 +0000 Subject: [PATCH] [WIN32K] - Colors passed to EngCreatePalette are PALETTEENTRYs, my bad. svn path=/branches/reactos-yarotows/; revision=48407 --- subsystems/win32/win32k/objects/palette.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/subsystems/win32/win32k/objects/palette.c b/subsystems/win32/win32k/objects/palette.c index 35065d043e4..90870864727 100644 --- a/subsystems/win32/win32k/objects/palette.c +++ b/subsystems/win32/win32k/objects/palette.c @@ -392,15 +392,7 @@ EngCreatePalette( { HPALETTE Palette; - /* Low order three bytes are RGB -> RGBQUAD */ - if(Mode == PAL_INDEXED) - { - Palette = PALETTE_AllocPaletteIndexedRGB(NumColors, (RGBQUAD*)Colors); - } - else - { - Palette = PALETTE_AllocPalette(Mode, NumColors, Colors, Red, Green, Blue); - } + Palette = PALETTE_AllocPalette(Mode, NumColors, Colors, Red, Green, Blue); if (Palette != NULL) { GDIOBJ_SetOwnership(Palette, NULL); -- 2.17.1