1
0
mirror of synced 2026-01-13 15:27:55 +00:00

If bitblt has to create the dest bitmap, take the dest_upper_left point into account.

This commit is contained in:
Eric Smith 2001-12-27 11:24:11 +00:00
parent 6677da8362
commit 85b22addb6

View File

@ -81,11 +81,11 @@ Bitmap *bitblt (Bitmap *src_bitmap,
if (! dest_bitmap)
{
if (scan & TRANSPOSE)
dest_bitmap = create_bitmap (rect_height (src_rect),
rect_width (src_rect));
dest_bitmap = create_bitmap (dest_upper_left.x + rect_height (src_rect),
dest_upper_left.y + rect_width (src_rect));
else
dest_bitmap = create_bitmap (rect_width (src_rect),
rect_height (src_rect));
dest_bitmap = create_bitmap (dest_upper_left.x + rect_width (src_rect),
dest_upper_left.y + rect_height (src_rect));
if (! dest_bitmap)
return (NULL);
}