From 4d6099cf0e42eac879f83cff5b3239f6c4501910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Fri, 22 Mar 2013 16:08:08 +0000 Subject: [PATCH] [WIN32K] * Do not alter the display palette in RealizePalette. CORE-6940 #comment r58577 should hack this away svn path=/trunk/; revision=58577 --- reactos/win32ss/gdi/ntgdi/palette.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/win32ss/gdi/ntgdi/palette.c b/reactos/win32ss/gdi/ntgdi/palette.c index ec173ce3eda..73b4832ac2c 100644 --- a/reactos/win32ss/gdi/ntgdi/palette.c +++ b/reactos/win32ss/gdi/ntgdi/palette.c @@ -771,6 +771,12 @@ IntGdiRealizePalette(HDC hDC) { goto cleanup; } + + if(pdc->dctype == DCTYPE_DIRECT) + { + UNIMPLEMENTED; + goto cleanup; + } ppalSurf = pdc->dclevel.pSurface->ppal; ppalDC = pdc->dclevel.ppal;