Commit fe26147c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 2eeed2df
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment