Ignore:
Timestamp:
Nov 9, 2006, 11:52:31 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Update code to make use of libcaca 0.99.beta9.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cacatris/trunk/src/main.c

    r1213 r1311  
    200200    sprintf(totalline, " Lines    :   %02d    ", total);
    201201
    202     cucul_set_color(inf, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
     202    cucul_set_color_ansi(inf, CUCUL_WHITE, CUCUL_BLUE);
    203203    cucul_putstr(inf, 0, 0, "      =Cacatris=    ");
    204204    cucul_putstr(inf, 0, 1, "  Arrows  :    move ");
     
    232232            unsigned int oyi = (unsigned int) oy;
    233233            unsigned int c = playfield[oxi+oyi*FIELD_WIDTH];
    234             if(c) {
    235                 cucul_set_color(canvas, CUCUL_COLOR_BLACK, blocks_palette[c-1]);
    236                 cucul_putchar(canvas, x, y, ' ');
    237             } else {
    238                 cucul_set_color(canvas, CUCUL_COLOR_BLACK, CUCUL_COLOR_DARKGRAY);
    239                 cucul_putchar(canvas, x, y, ' ');
    240 
    241             }
     234            cucul_set_color_ansi(canvas, CUCUL_BLACK,
     235                                 c ? blocks_palette[c-1] : CUCUL_DARKGRAY);
     236            cucul_putchar(canvas, x, y, ' ');
    242237            ox+=incx;
    243238        }
Note: See TracChangeset for help on using the changeset viewer.