Sun, 16 Mar 2003 15:36:54 +0000
made test data width greater than 32, a multiple of 4, but not a multiple of 8. added printfs to clarify output.
bitblt_test.c | file | annotate | diff | revisions |
1.1 --- a/bitblt_test.c Sun Mar 16 15:37:16 2003 +0000 1.2 +++ b/bitblt_test.c Sun Mar 16 15:36:54 2003 +0000 1.3 @@ -6,20 +6,20 @@ 1.4 #include "bitblt.h" 1.5 1.6 1.7 -#define WIDTH 20 1.8 +#define WIDTH 44 1.9 #define HEIGHT 9 1.10 1.11 char test_data [HEIGHT][WIDTH] = 1.12 { 1.13 - ".....XXXXXXXXXX.....", 1.14 - ".....XX.......X.....", 1.15 - "XXXXXX.X......XXXXXX", 1.16 - ".....X..X.....X.....", 1.17 - ".....X...X....X.....", 1.18 - ".....X....X...X.....", 1.19 - ".....X.....X..X.....", 1.20 - ".....XXXXXXXXXX.....", 1.21 - ".....X.X.X.X.X......" 1.22 + ".....XXXXXXXXXX.......XX............X......X", 1.23 + ".....XX.......X.......X.X..........X......X.", 1.24 + "XXXXXX.X......XXXXXX..X..X........X......X..", 1.25 + ".....X..X.....X.......XX.........X......X...", 1.26 + ".....X...X....X.......X.X.......X......X....", 1.27 + ".....X....X...X.......X..X.....X......X.....", 1.28 + ".....X.....X..X.......XX..... X......X......", 1.29 + ".....XXXXXXXXXX.......X.X....X......X.......", 1.30 + ".....X.X.X.X.X........X..X..X......X........" 1.31 }; 1.32 1.33 Bitmap *setup (void) 1.34 @@ -71,11 +71,13 @@ 1.35 1.36 flip_v (b); 1.37 1.38 + printf ("flipped vertically:\n"); 1.39 print_bitmap (stdout, b); 1.40 printf ("\n"); 1.41 1.42 flip_h (b); 1.43 1.44 + printf ("flipped horizontally:\n"); 1.45 print_bitmap (stdout, b); 1.46 printf ("\n"); 1.47 1.48 @@ -102,6 +104,7 @@ 1.49 exit (2); 1.50 } 1.51 1.52 + printf ("after bitblt\n"); 1.53 print_bitmap (stdout, b2); 1.54 #endif 1.55