Ignore:
Timestamp:
May 18, 2006, 8:23:47 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Changed cucul_putchar's prototype so that it accepts a 32-bit unsigned int which shall be used as an UTF-32 character. We do not have any casting problems due to the signedness of chars because all characters were ASCII (ie. <= 0x7f) beforehands.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/box.c

    r870 r958  
    8585    if(y1 >= 0)
    8686        for(x = x1 < 0 ? 1 : x1 + 1; x < x2 && x < xmax; x++)
    87             _cucul_putchar32(cv, x, y1, (uint32_t)'-');
     87            cucul_putchar(cv, x, y1, '-');
    8888
    8989    if(y2 <= ymax)
    9090        for(x = x1 < 0 ? 1 : x1 + 1; x < x2 && x < xmax; x++)
    91             _cucul_putchar32(cv, x, y2, (uint32_t)'-');
     91            cucul_putchar(cv, x, y2, '-');
    9292
    9393    if(x1 >= 0)
    9494        for(y = y1 < 0 ? 1 : y1 + 1; y < y2 && y < ymax; y++)
    95             _cucul_putchar32(cv, x1, y, (uint32_t)'|');
     95            cucul_putchar(cv, x1, y, '|');
    9696
    9797    if(x2 <= xmax)
    9898        for(y = y1 < 0 ? 1 : y1 + 1; y < y2 && y < ymax; y++)
    99             _cucul_putchar32(cv, x2, y, (uint32_t)'|');
     99            cucul_putchar(cv, x2, y, '|');
    100100
    101101    /* Draw corners */
    102102    if(x1 >= 0 && y1 >= 0)
    103         _cucul_putchar32(cv, x1, y1, (uint32_t)',');
     103        cucul_putchar(cv, x1, y1, ',');
    104104
    105105    if(x1 >= 0 && y2 <= ymax)
    106         _cucul_putchar32(cv, x1, y2, (uint32_t)'`');
     106        cucul_putchar(cv, x1, y2, '`');
    107107
    108108    if(x2 <= xmax && y1 >= 0)
    109         _cucul_putchar32(cv, x2, y1, (uint32_t)'.');
     109        cucul_putchar(cv, x2, y1, '.');
    110110
    111111    if(x2 <= xmax && y2 <= ymax)
    112         _cucul_putchar32(cv, x2, y2, (uint32_t)'\'');
     112        cucul_putchar(cv, x2, y2, '\'');
    113113
    114114    return 0;
     
    160160    for(y = y1; y <= y2; y++)
    161161        for(x = x1; x <= x2; x++)
    162             _cucul_putchar32(cv, x, y, ch);
     162            cucul_putchar(cv, x, y, ch);
    163163
    164164    return 0;
Note: See TracChangeset for help on using the changeset viewer.