Huw Davies : gdi32: Reset the image size when cropping the source bitmap.
Alexandre Julliard
julliard at winehq.org
Mon Feb 13 15:24:40 CST 2017
Module: wine
Branch: master
Commit: fe26147c17e503bbb4dd97bed317a73edb2a1cda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe26147c17e503bbb4dd97bed317a73edb2a1cda
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Feb 13 14:08:02 2017 +0000
gdi32: Reset the image size when cropping the source bitmap.
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 ef63f40..a85bf6f 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -831,6 +831,7 @@ INT nulldrv_SetDIBitsToDevice( PHYSDEV dev, INT x_dst, INT y_dst, DWORD cx, DWOR
else if (src.y >= lines) return lines;
}
src_info->bmiHeader.biHeight = top_down ? -lines : lines;
+ src_info->bmiHeader.biSizeImage = get_dib_image_size( src_info );
}
src.visrect.left = src.x;
More information about the wine-cvs
mailing list