From 5f35dd607166017bb76d5ddaac1fd8373d0eb4ab Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 1 Jul 2008 03:39:12 +0000 Subject: [PATCH] Attempt to fix set palette issue. See bug 733. svn path=/trunk/; revision=34228 --- reactos/subsystems/win32/win32k/objects/color.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/color.c b/reactos/subsystems/win32/win32k/objects/color.c index f850fa2b28b..5d0c0c8c1d8 100644 --- a/reactos/subsystems/win32/win32k/objects/color.c +++ b/reactos/subsystems/win32/win32k/objects/color.c @@ -555,13 +555,14 @@ UINT FASTCALL IntGdiRealizePalette(HDC hDC) success = ((GDIDEVICE *)dc->pPDev)->DriverFunctions.SetPalette( dc->PDev, sysPtr, 0, 0, sysGDI->NumColors); - } else { +/* See bug 733, keep the code for now. + } else { if( ((GDIDEVICE *)dc->pPDev)->DriverFunctions.SetPalette) { ASSERT(palGDI->NumColors <= 256); success = ((GDIDEVICE *)dc->pPDev)->DriverFunctions.SetPalette( dc->PDev, palPtr, 0, 0, palGDI->NumColors); - } + }*/ } // need to pass this to IntEngCreateXlate with palettes unlocked