Changeset 2062 for libcaca/trunk/test/hsv.c
- Timestamp:
- Nov 25, 2007, 6:13:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/hsv.c
r1753 r2062 30 30 int main(int argc, char *argv[]) 31 31 { 32 caca_display_t *dp; 32 33 cucul_canvas_t *cv; 33 caca_display_t *dp;34 34 35 35 cucul_dither_t *dither; 36 36 int x, y; 37 37 38 cv = cucul_create_canvas(0, 0); 39 if(cv == NULL) 40 { 41 printf("Can't created canvas\n"); 42 return -1; 43 } 44 dp = caca_create_display(cv); 38 dp = caca_create_display(NULL); 45 39 if(dp == NULL) 46 40 { … … 48 42 return -1; 49 43 } 44 45 cv = caca_get_canvas(dp); 50 46 51 47 for(y = 0; y < 256; y++) … … 57 53 dither = cucul_create_dither(32, 256, 256, 4 * 256, 58 54 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 59 cucul_dither_bitmap(c v, 0, 0, cucul_get_canvas_width(cv),55 cucul_dither_bitmap(caca_get_canvas(dp), 0, 0, cucul_get_canvas_width(cv), 60 56 cucul_get_canvas_height(cv), dither, buffer); 61 57 cucul_free_dither(dither); … … 66 62 67 63 caca_free_display(dp); 68 cucul_free_canvas(cv);69 64 70 65 return 0;
Note: See TracChangeset
for help on using the changeset viewer.