Changeset 2821 for libcaca/trunk/src/cacaplay.c
- Timestamp:
- Sep 27, 2008, 3:12:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/cacaplay.c
r2300 r2821 25 25 #endif 26 26 27 #include "cucul.h"28 27 #include "caca.h" 29 28 30 29 int main(int argc, char **argv) 31 30 { 32 c ucul_canvas_t *cv, *app;31 caca_canvas_t *cv, *app; 33 32 caca_display_t *dp; 34 33 uint8_t *buf = NULL; … … 50 49 } 51 50 52 cv = c ucul_create_canvas(0, 0);53 app = c ucul_create_canvas(0, 0);51 cv = caca_create_canvas(0, 0); 52 app = caca_create_canvas(0, 0); 54 53 if(cv == NULL || app == NULL) 55 54 { … … 91 90 } 92 91 93 bytes = c ucul_import_memory(app, buf, total, "caca");92 bytes = caca_import_memory(app, buf, total, "caca"); 94 93 95 94 if(bytes > 0) … … 98 97 memmove(buf, buf + bytes, total); 99 98 100 c ucul_blit(cv, 0, 0, app, NULL);99 caca_blit(cv, 0, 0, app, NULL); 101 100 caca_refresh_display(dp); 102 101 } … … 117 116 118 117 caca_free_display(dp); 119 c ucul_free_canvas(cv);118 caca_free_canvas(cv); 120 119 121 120 return 0;
Note: See TracChangeset
for help on using the changeset viewer.