Changeset 2821 for libcaca/trunk/examples/truecolor.c
- Timestamp:
- Sep 27, 2008, 3:12:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/examples/truecolor.c
r2299 r2821 19 19 #endif 20 20 21 #include "cucul.h"22 21 #include "caca.h" 23 22 24 23 int main(int argc, char *argv[]) 25 24 { 26 c ucul_canvas_t *cv;25 caca_canvas_t *cv; 27 26 caca_display_t *dp; 28 27 29 28 int x, y; 30 29 31 cv = c ucul_create_canvas(32, 16);30 cv = caca_create_canvas(32, 16); 32 31 if(cv == NULL) 33 32 { … … 49 48 uint16_t fgcolor = 0xf000 | ((15 - y) << 4) | ((15 - x) << 8); 50 49 51 c ucul_set_color_argb(cv, fgcolor, bgcolor);52 c ucul_put_str(cv, x * 2, y, "CA");50 caca_set_color_argb(cv, fgcolor, bgcolor); 51 caca_put_str(cv, x * 2, y, "CA"); 53 52 } 54 53 55 c ucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_LIGHTBLUE);56 c ucul_put_str(cv, 2, 1, " truecolor libcaca ");54 caca_set_color_ansi(cv, CACA_WHITE, CACA_LIGHTBLUE); 55 caca_put_str(cv, 2, 1, " truecolor libcaca "); 57 56 58 57 caca_refresh_display(dp); … … 61 60 62 61 caca_free_display(dp); 63 c ucul_free_canvas(cv);62 caca_free_canvas(cv); 64 63 65 64 return 0;
Note: See TracChangeset
for help on using the changeset viewer.