Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (15 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/truecolor.c

    r2299 r2821  
    1919#endif
    2020
    21 #include "cucul.h"
    2221#include "caca.h"
    2322
    2423int main(int argc, char *argv[])
    2524{
    26     cucul_canvas_t *cv;
     25    caca_canvas_t *cv;
    2726    caca_display_t *dp;
    2827
    2928    int x, y;
    3029
    31     cv = cucul_create_canvas(32, 16);
     30    cv = caca_create_canvas(32, 16);
    3231    if(cv == NULL)
    3332    {
     
    4948        uint16_t fgcolor = 0xf000 | ((15 - y) << 4) | ((15 - x) << 8);
    5049
    51         cucul_set_color_argb(cv, fgcolor, bgcolor);
    52         cucul_put_str(cv, x * 2, y, "CA");
     50        caca_set_color_argb(cv, fgcolor, bgcolor);
     51        caca_put_str(cv, x * 2, y, "CA");
    5352    }
    5453
    55     cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_LIGHTBLUE);
    56     cucul_put_str(cv, 2, 1, " truecolor libcaca ");
     54    caca_set_color_ansi(cv, CACA_WHITE, CACA_LIGHTBLUE);
     55    caca_put_str(cv, 2, 1, " truecolor libcaca ");
    5756
    5857    caca_refresh_display(dp);
     
    6160
    6261    caca_free_display(dp);
    63     cucul_free_canvas(cv);
     62    caca_free_canvas(cv);
    6463
    6564    return 0;
Note: See TracChangeset for help on using the changeset viewer.