Huw Davies : gdi32: Don't use biSizeImage for a BI_BITFIELDS dib.
Alexandre Julliard
julliard at winehq.org
Mon Aug 18 10:46:30 CDT 2008
Module: wine
Branch: master
Commit: 67a5f256c46b0d022ac76e5302a4884cf6b11074
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67a5f256c46b0d022ac76e5302a4884cf6b11074
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Jul 29 11:49:58 2008 +0100
gdi32: Don't use biSizeImage for a BI_BITFIELDS dib.
---
dlls/gdi32/brush.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/brush.c b/dlls/gdi32/brush.c
index 01f69a8..908670e 100644
--- a/dlls/gdi32/brush.c
+++ b/dlls/gdi32/brush.c
@@ -61,7 +61,7 @@ static HGLOBAL16 dib_copy(const BITMAPINFO *info, UINT coloruse)
HGLOBAL16 hmem;
INT size;
- if (info->bmiHeader.biCompression)
+ if (info->bmiHeader.biCompression != BI_RGB && info->bmiHeader.biCompression != BI_BITFIELDS)
size = info->bmiHeader.biSizeImage;
else
size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth,
More information about the wine-cvs
mailing list