Changeset 1217
- Timestamp:
- Oct 22, 2006, 6:16:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/fullwidth.c
r1216 r1217 25 25 #include "caca.h" 26 26 27 #define HOHO "ホホホホホホホホホホホホホホホ"27 #define CACA "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊" 28 28 29 29 int main(int argc, char *argv[]) 30 30 { 31 cucul_canvas_t *cv, * hoho;31 cucul_canvas_t *cv, *caca; 32 32 caca_display_t *dp; 33 33 … … 37 37 dp = caca_create_display(cv); 38 38 39 hoho= cucul_create_canvas(6, 10);39 caca = cucul_create_canvas(6, 10); 40 40 41 41 for(i = 0; i < 10; i++) 42 42 { 43 cucul_set_color( hoho, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);44 cucul_putstr( hoho, 0, i, HOHO);45 cucul_set_color( hoho, CUCUL_COLOR_WHITE, CUCUL_COLOR_RED);46 cucul_putchar( hoho, i - 2, i, 'x');43 cucul_set_color(caca, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); 44 cucul_putstr(caca, 0, i, CACA); 45 cucul_set_color(caca, CUCUL_COLOR_WHITE, CUCUL_COLOR_RED); 46 cucul_putchar(caca, i - 2, i, 'x'); 47 47 } 48 48 49 cucul_blit(cv, 1, 1, hoho, NULL);49 cucul_blit(cv, 1, 1, caca, NULL); 50 50 51 51 for(i = 0; i < 10; i++) 52 52 { 53 cucul_set_color( hoho, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);54 cucul_putstr( hoho, 0, i, HOHO);55 cucul_set_color( hoho, CUCUL_COLOR_WHITE, CUCUL_COLOR_GREEN);56 cucul_putstr( hoho, i - 2, i, "ホ");53 cucul_set_color(caca, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); 54 cucul_putstr(caca, 0, i, CACA); 55 cucul_set_color(caca, CUCUL_COLOR_WHITE, CUCUL_COLOR_GREEN); 56 cucul_putstr(caca, i - 2, i, "ホ"); 57 57 } 58 58 59 cucul_blit(cv, 15, 1, hoho, NULL);59 cucul_blit(cv, 15, 1, caca, NULL); 60 60 61 61 caca_refresh_display(dp);
Note: See TracChangeset
for help on using the changeset viewer.