gdiplus: Fix reading the mask bits in GdipCreateBitmapFromHICON.
This commit is contained in:
parent
0df1742307
commit
34ef07fda2
|
@ -1691,7 +1691,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHICON(HICON hicon, GpBitmap** bitmap)
|
|||
|
||||
bih.biSize = sizeof(bih);
|
||||
bih.biWidth = width;
|
||||
bih.biHeight = -height;
|
||||
bih.biHeight = iinfo.hbmColor ? -height: -height * 2;
|
||||
bih.biPlanes = 1;
|
||||
bih.biBitCount = 32;
|
||||
bih.biCompression = BI_RGB;
|
||||
|
|
Loading…
Reference in New Issue