Module: wine Branch: master Commit: 34ef07fda20a5fdd92961a016d0e7465b2316da3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=34ef07fda20a5fdd92961a016d...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue Jan 15 12:48:08 2013 +0800
gdiplus: Fix reading the mask bits in GdipCreateBitmapFromHICON.
---
dlls/gdiplus/image.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 9d88629..558e300 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -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;