Changeset 777 for libcaca/trunk/test
- Timestamp:
- Apr 16, 2006, 8:28:47 PM (15 years ago)
- Location:
- libcaca/trunk/test
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/colors.c
r710 r777 25 25 cucul_t *qq; 26 26 caca_t *kk; 27 struct caca_event ev;27 caca_event_t ev; 28 28 int i, j; 29 29 -
libcaca/trunk/test/demo.c
r774 r777 36 36 int outline = 0; 37 37 int dithering = 0; 38 struct cucul_sprite*sprite = NULL;38 cucul_sprite_t *sprite = NULL; 39 39 40 40 cucul_t *qq; … … 72 72 while(!quit) 73 73 { 74 struct caca_event ev;74 caca_event_t ev; 75 75 int menu = 0, mouse = 0, xmouse = 0, ymouse = 0; 76 76 … … 484 484 static void demo_render(void) 485 485 { 486 struct cucul_dither*dither;486 cucul_dither_t *dither; 487 487 //short buffer[256*256]; 488 488 //short *dest = buffer; … … 514 514 static void demo_render(void) 515 515 { 516 struct cucul_dither*dither;516 cucul_dither_t *dither; 517 517 int buffer[256*256]; 518 518 int *dest; -
libcaca/trunk/test/dithering.c
r733 r777 35 35 int main(void) 36 36 { 37 struct caca_event ev;37 caca_event_t ev; 38 38 cucul_t *qq; 39 39 caca_t *kk; -
libcaca/trunk/test/event.c
r710 r777 24 24 static caca_t *kk; 25 25 26 static void print_event(int, int, struct caca_event *);26 static void print_event(int, int, caca_event_t *); 27 27 28 28 int main(int argc, char **argv) 29 29 { 30 struct caca_event *events;30 caca_event_t *events; 31 31 int i, h, quit; 32 32 … … 48 48 caca_display(kk); 49 49 50 events = malloc(h * sizeof( struct caca_event));51 memset(events, 0, h * sizeof( struct caca_event));50 events = malloc(h * sizeof(caca_event_t)); 51 memset(events, 0, h * sizeof(caca_event_t)); 52 52 53 53 for(quit = 0; quit < 4; ) 54 54 { 55 struct caca_event ev;55 caca_event_t ev; 56 56 static char const * quit_string[] = { "", "q", "qu", "qui", "quit" }; 57 57 int ret = caca_get_event(kk, CACA_EVENT_ANY, &ev, -1); … … 75 75 } 76 76 77 memmove(events + 1, events, (h - 1) * sizeof( struct caca_event));77 memmove(events + 1, events, (h - 1) * sizeof(caca_event_t)); 78 78 events[0] = ev; 79 79 … … 107 107 } 108 108 109 static void print_event(int x, int y, struct caca_event *ev)109 static void print_event(int x, int y, caca_event_t *ev) 110 110 { 111 111 int character; -
libcaca/trunk/test/export.c
r757 r777 36 36 { 37 37 cucul_t *qq; 38 struct cucul_dither*dither;39 struct cucul_buffer*buffer;38 cucul_dither_t *dither; 39 cucul_buffer_t *buffer; 40 40 int x, y; 41 41 … … 91 91 92 92 buffer = cucul_create_export(qq, argv[1]); 93 fwrite(buffer->data, buffer->size, 1, stdout); 94 cucul_free_export(buffer); 93 fwrite(cucul_get_buffer_data(buffer), 94 cucul_get_buffer_size(buffer), 1, stdout); 95 cucul_free_buffer(buffer); 95 96 96 97 cucul_free(qq); -
libcaca/trunk/test/font.c
r767 r777 37 37 cucul_t *qq; 38 38 caca_t *kk; 39 struct cucul_font *f;40 struct cucul_dither*d;41 struct caca_event ev;39 cucul_font_t *f; 40 cucul_dither_t *d; 41 caca_event_t ev; 42 42 unsigned char *buf; 43 43 unsigned int w, h; -
libcaca/trunk/test/gamma.c
r734 r777 34 34 int main(void) 35 35 { 36 struct caca_event ev;36 caca_event_t ev; 37 37 cucul_t *qq, *gg, *mask; 38 38 caca_t *kk; 39 struct cucul_dither*left, *right;39 cucul_dither_t *left, *right; 40 40 float gam = 1.0; 41 41 int x; -
libcaca/trunk/test/hsv.c
r766 r777 29 29 int main(void) 30 30 { 31 struct caca_event ev;31 caca_event_t ev; 32 32 cucul_t *qq; 33 33 caca_t *kk; 34 34 35 struct cucul_dither*dither;35 cucul_dither_t *dither; 36 36 int x, y; 37 37 -
libcaca/trunk/test/spritedit.c
r774 r777 27 27 28 28 int quit = 0; 29 struct cucul_sprite*sprite;29 cucul_sprite_t *sprite; 30 30 int frame = 0; 31 31 unsigned char play = 0; … … 58 58 while(!quit) 59 59 { 60 struct caca_event ev;60 caca_event_t ev; 61 61 int xa, ya, xb, yb; 62 62 char buf[BUFSIZ]; -
libcaca/trunk/test/transform.c
r710 r777 50 50 int main(void) 51 51 { 52 struct caca_event ev;52 caca_event_t ev; 53 53 cucul_t *qq, *normal, *flip, *flop, *rotate; 54 54 caca_t *kk; -
libcaca/trunk/test/unicode.c
r710 r777 27 27 int main(void) 28 28 { 29 struct caca_event ev;29 caca_event_t ev; 30 30 cucul_t *qq; 31 31 caca_t *kk;
Note: See TracChangeset
for help on using the changeset viewer.