[user32] Set the number of colors correctly when creating a monochrome bitmap
authorGregor Schneider <grschneider@gmail.com>
Wed, 30 Dec 2009 12:39:19 +0000 (12:39 +0000)
committerGregor Schneider <grschneider@gmail.com>
Wed, 30 Dec 2009 12:39:19 +0000 (12:39 +0000)
svn path=/trunk/; revision=44808

reactos/dll/win32/user32/windows/icon.c

index 5840b89..28cdee6 100644 (file)
@@ -75,8 +75,8 @@ CreateCursorIconFromData(HDC hDC, PVOID ImageData, ICONIMAGE* IconImage, int cxD
        bwBIH->bmiHeader.biPlanes = 1;
        bwBIH->bmiHeader.biSizeImage = 0;
        bwBIH->bmiHeader.biCompression = BI_RGB;
        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;
 
        bwBIH->bmiHeader.biXPelsPerMeter = 0;
        bwBIH->bmiHeader.biYPelsPerMeter = 0;