Changeset 1217


Ignore:
Timestamp:
Oct 22, 2006, 6:16:15 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Use 0xCACA as the test character. Ahaha. Caca. Got it?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/fullwidth.c

    r1216 r1217  
    2525#include "caca.h"
    2626
    27 #define HOHO "ホホホホホホホホホホホホホホホ"
     27#define CACA "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊"
    2828
    2929int main(int argc, char *argv[])
    3030{
    31     cucul_canvas_t *cv, *hoho;
     31    cucul_canvas_t *cv, *caca;
    3232    caca_display_t *dp;
    3333
     
    3737    dp = caca_create_display(cv);
    3838
    39     hoho = cucul_create_canvas(6, 10);
     39    caca = cucul_create_canvas(6, 10);
    4040
    4141    for(i = 0; i < 10; i++)
    4242    {
    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');
    4747    }
    4848
    49     cucul_blit(cv, 1, 1, hoho, NULL);
     49    cucul_blit(cv, 1, 1, caca, NULL);
    5050
    5151    for(i = 0; i < 10; i++)
    5252    {
    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, "ホ");
    5757    }
    5858
    59     cucul_blit(cv, 15, 1, hoho, NULL);
     59    cucul_blit(cv, 15, 1, caca, NULL);
    6060
    6161    caca_refresh_display(dp);
Note: See TracChangeset for help on using the changeset viewer.