Author: jgardou Date: Mon Aug 2 01:09:36 2010 New Revision: 48407
URL: http://svn.reactos.org/svn/reactos?rev=48407&view=rev Log: [WIN32K] - Colors passed to EngCreatePalette are PALETTEENTRYs, my bad.
Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/palette.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/palette.c URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win3... ============================================================================== --- branches/reactos-yarotows/subsystems/win32/win32k/objects/palette.c [iso-8859-1] (original) +++ branches/reactos-yarotows/subsystems/win32/win32k/objects/palette.c [iso-8859-1] Mon Aug 2 01:09:36 2010 @@ -392,15 +392,7 @@ { 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);