From af9b7168ed6bc2ffa4585ab5092885abf2f27d2c Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 10 Dec 2008 21:14:02 +0000 Subject: [PATCH] - Yet another victim of the Win32k Initialization BUG! - Creating an Information DC is wrong when using it with Icon Creation. This makes the default bitmap monochrome and this is why CreateCompatibleBitmap is broken. Plus all the hacks related to making it all work in Win32k. svn path=/trunk/; revision=38002 --- reactos/dll/win32/user32/windows/icon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/win32/user32/windows/icon.c b/reactos/dll/win32/user32/windows/icon.c index fb76bf7ffce..4d0aac5aab2 100644 --- a/reactos/dll/win32/user32/windows/icon.c +++ b/reactos/dll/win32/user32/windows/icon.c @@ -291,6 +291,8 @@ CreateIconFromResourceEx( Data = (PBYTE)SafeIconImage + HeaderSize; /* get a handle to the screen dc, the icon we create is going to be compatable with this */ + // FIXME!!! This is a victim of the Win32k Initialization BUG!!!!! + //hScreenDc = CreateDCW(NULL, NULL, NULL, NULL); hScreenDc = CreateCompatibleDC(NULL); if (hScreenDc == NULL) {