bitblt_test.c

changeset 47
bfc6aaa089b0
parent 43
b80cb5a4282a
child 48
3d0be1c1c1b2
     1.1 --- a/bitblt_test.c	Sun Aug 25 13:22:42 2002 +0000
     1.2 +++ b/bitblt_test.c	Mon Aug 26 05:43:49 2002 +0000
     1.3 @@ -78,16 +78,23 @@
     1.4    print_bitmap (stdout, b);
     1.5    printf ("\n");
     1.6  
     1.7 -#if 0
     1.8 -  r.upper_left.x = r.upper_left.y = 0;
     1.9 -  r.lower_right.x = b->width;
    1.10 -  r.lower_right.y = b->height;
    1.11 -  p.x = p.y = 0;
    1.12 +#if 1
    1.13 +  r.min.x = r.min.y = 0;
    1.14 +  r.max.x = b->rect.max.x + 8;
    1.15 +  r.max.y = b->rect.max.y + 8;
    1.16 +
    1.17 +  b2 = create_bitmap (& r);
    1.18  
    1.19 -  b2 = bitblt (b, r,
    1.20 -	       NULL, p,
    1.21 -	       ROT_90,
    1.22 -	       TF_SRC);
    1.23 +  r.min.x = r.min.y = 0;
    1.24 +  r.max.x = b->rect.max.x;
    1.25 +  r.max.y = b->rect.max.y;
    1.26 +
    1.27 +  p.x = -3;
    1.28 +  p.y = -3;
    1.29 +
    1.30 +  b2 = bitblt (b, & r,
    1.31 +	       b2, & p,
    1.32 +	       TF_SRC, 0);
    1.33    if (! b2)
    1.34      {
    1.35        fprintf (stderr, "bitblt failed\n");