From fe26147c17e503bbb4dd97bed317a73edb2a1cda Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 13 Feb 2017 14:08:02 +0000 Subject: [PATCH] gdi32: Reset the image size when cropping the source bitmap. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/gdi32/dib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index ef63f4038ad..a85bf6f2785 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;