Huw Davies : gdi32: Initialize biSizeImage in the DDB's bitmapinfo.

Alexandre Julliard julliard at winehq.org
Mon Feb 13 15:24:40 CST 2017


Module: wine
Branch: master
Commit: 2eeed2df518ae382d31c4810eb24775100a882b2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2eeed2df518ae382d31c4810eb24775100a882b2

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Feb 13 14:08:01 2017 +0000

gdi32: Initialize biSizeImage in the DDB's bitmapinfo.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/dib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
index f071bbf..ef63f40 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -1177,6 +1177,7 @@ void get_ddb_bitmapinfo( BITMAPOBJ *bmp, BITMAPINFO *info )
     info->bmiHeader.biPlanes        = 1;
     info->bmiHeader.biBitCount      = bmp->dib.dsBm.bmBitsPixel;
     info->bmiHeader.biCompression   = BI_RGB;
+    info->bmiHeader.biSizeImage     = get_dib_image_size( info );
     info->bmiHeader.biXPelsPerMeter = 0;
     info->bmiHeader.biYPelsPerMeter = 0;
     info->bmiHeader.biClrUsed       = 0;




More information about the wine-cvs mailing list