gdiplus: Fix reading the mask bits in GdipCreateBitmapFromHICON.

oldstable
Dmitry Timoshkov 2013-01-15 12:48:08 +08:00 committed by Alexandre Julliard
parent 0df1742307
commit 34ef07fda2
1 changed files with 1 additions and 1 deletions

View File

@ -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;