From e33dcea4d413727bfd730df3b90e98db2e3fe4d0 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 27 Apr 2012 09:31:24 +0000 Subject: [PATCH] [WIN32K] Fix initialization of XLATEOBJ in NtGdiGetPixel. Fixes GetPixel regressions. svn path=/trunk/; revision=56436 --- reactos/win32ss/gdi/ntgdi/bitblt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/bitblt.c b/reactos/win32ss/gdi/ntgdi/bitblt.c index d3dede27536..a3ce6744163 100644 --- a/reactos/win32ss/gdi/ntgdi/bitblt.c +++ b/reactos/win32ss/gdi/ntgdi/bitblt.c @@ -1151,7 +1151,12 @@ NtGdiGetPixel( EXLATEOBJ exlo; /* Translate from the source palette to RGB color */ - EXLATEOBJ_vInitialize(&exlo, psurfSrc->ppal, &gpalRGB, 0, 0, 0); + EXLATEOBJ_vInitialize(&exlo, + psurfSrc->ppal, + &gpalRGB, + 0, + RGB(0xff,0xff,0xff), + RGB(0,0,0)); /* Call the copy bits function */ bResult = IntEngCopyBits(&psurfDest->SurfObj,