Changeset 805


Ignore:
Timestamp:
Apr 18, 2006, 10:33:06 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Cosmetic code changes and minor optimisations.
Location:
libcaca/trunk
Files:
2 edited

Legend:

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

    r804 r805  
    128128static void export_ansi(cucul_t *qq, cucul_buffer_t *ex)
    129129{
    130     static int const palette[] =
     130    static uint8_t const palette[] =
    131131    {
    132132        0,  4,  2,  6, 1,  5,  3,  7,
     
    195195static void export_html(cucul_t *qq, cucul_buffer_t *ex)
    196196{
    197     static int const palette[] =
     197    static uint16_t const palette[] =
    198198    {
    199199        0x000, 0x008, 0x080, 0x088, 0x800, 0x808, 0x880, 0x888,
     
    269269static void export_html3(cucul_t *qq, cucul_buffer_t *ex)
    270270{
    271     static int const palette[] =
     271    static uint32_t const palette[] =
    272272    {
    273273        0x000000, 0x000088, 0x008800, 0x008888,
     
    346346static void export_irc(cucul_t *qq, cucul_buffer_t *ex)
    347347{
    348     static int const palette[] =
     348    static uint8_t const palette[] =
    349349    {
    350350        1, 2, 3, 10, 5, 6, 7, 15, /* Dark */
     
    623623static void export_tga(cucul_t *qq, cucul_buffer_t *ex)
    624624{
    625     char const * const * fonts;
     625    char const * const * fontlist;
    626626    char * cur;
    627627    cucul_font_t *f;
    628628    unsigned int i, w, h;
    629629
    630     fonts = cucul_get_font_list();
    631     if(!fonts[0])
     630    fontlist = cucul_get_font_list();
     631    if(!fontlist[0])
    632632        return;
    633633
    634     f = cucul_load_font(fonts[0], 0);
     634    f = cucul_load_font(fontlist[0], 0);
    635635
    636636    w = cucul_get_width(qq) * cucul_get_font_width(f);
  • libcaca/trunk/tools/makefont.c

    r762 r805  
    1212 *
    1313 * Usage:
    14  *   makefont
     14 *   makefont <prefix> <font> <dpi> <bpp>
    1515 */
    1616
Note: See TracChangeset for help on using the changeset viewer.