- 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
This commit is contained in:
James Tabor 2008-12-10 21:14:02 +00:00
parent 8e07c62725
commit af9b7168ed

View file

@ -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)
{