Huw Davies : gdi32: Reset the image size when cropping the source bitmap.
Module: wine Branch: master Commit: fe26147c17e503bbb4dd97bed317a73edb2a1cda URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe26147c17e503bbb4dd97bed3... Author: Huw Davies <huw(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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;
participants (1)
-
Alexandre Julliard