gdi32: Reset the image size when cropping the source bitmap.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Huw Davies 2017-02-13 14:08:02 +00:00 committed by Alexandre Julliard
parent 2eeed2df51
commit fe26147c17
1 changed files with 1 additions and 0 deletions

View File

@ -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;