bitblt.c

changeset 4
86a98659662f
parent 3
317de52d8a63
child 11
30d18cf8bb67
     1.1 --- a/bitblt.c	Thu Dec 27 11:17:28 2001 +0000
     1.2 +++ b/bitblt.c	Thu Dec 27 11:24:11 2001 +0000
     1.3 @@ -81,11 +81,11 @@
     1.4    if (! dest_bitmap)
     1.5      {
     1.6        if (scan & TRANSPOSE)
     1.7 -	dest_bitmap = create_bitmap (rect_height (src_rect),
     1.8 -				     rect_width (src_rect));
     1.9 +	dest_bitmap = create_bitmap (dest_upper_left.x + rect_height (src_rect),
    1.10 +				     dest_upper_left.y + rect_width (src_rect));
    1.11        else
    1.12 -	dest_bitmap = create_bitmap (rect_width (src_rect),
    1.13 -				     rect_height (src_rect));
    1.14 +	dest_bitmap = create_bitmap (dest_upper_left.x + rect_width (src_rect),
    1.15 +				     dest_upper_left.y + rect_height (src_rect));
    1.16        if (! dest_bitmap)
    1.17  	return (NULL);
    1.18      }