Author: gschneider
Date: Wed Dec 30 13:39:19 2009
New Revision: 44808
URL:
http://svn.reactos.org/svn/reactos?rev=44808&view=rev
Log:
[user32] Set the number of colors correctly when creating a monochrome bitmap
Modified:
trunk/reactos/dll/win32/user32/windows/icon.c
Modified: trunk/reactos/dll/win32/user32/windows/icon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/i…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/icon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/icon.c [iso-8859-1] Wed Dec 30 13:39:19 2009
@@ -75,8 +75,8 @@
bwBIH->bmiHeader.biPlanes = 1;
bwBIH->bmiHeader.biSizeImage = 0;
bwBIH->bmiHeader.biCompression = BI_RGB;
- bwBIH->bmiHeader.biClrImportant = 0;
- bwBIH->bmiHeader.biClrUsed = 0;
+ bwBIH->bmiHeader.biClrImportant = 2;
+ bwBIH->bmiHeader.biClrUsed = 2;
bwBIH->bmiHeader.biXPelsPerMeter = 0;
bwBIH->bmiHeader.biYPelsPerMeter = 0;