Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (11 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/driver.c

    r2299 r2821  
    2020#endif
    2121
    22 #include "cucul.h"
    2322#include "caca.h"
    2423
     
    2726    char const * const *list;
    2827    caca_display_t *dp;
    29     cucul_canvas_t *cv;
     28    caca_canvas_t *cv;
    3029
    3130    list = caca_get_display_driver_list();
     
    3938
    4039    cv = caca_get_canvas(dp);
    41     cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLACK);
     40    caca_set_color_ansi(cv, CACA_WHITE, CACA_BLACK);
    4241
    4342    while(1)
     
    4645        int i, cur = 0;
    4746
    48         cucul_put_str(cv, 1, 0, "Available drivers:");
     47        caca_put_str(cv, 1, 0, "Available drivers:");
    4948
    5049        driver = caca_get_display_driver(dp);
     
    5655            if(match)
    5756                cur = i;
    58             cucul_draw_line(cv, 0, i + 2, 9999, i + 2, ' ');
    59             cucul_printf(cv, 2, i + 2, "%c %s (%s)",
     57            caca_draw_line(cv, 0, i + 2, 9999, i + 2, ' ');
     58            caca_printf(cv, 2, i + 2, "%c %s (%s)",
    6059                         match ? '*' : ' ', list[i], list[i + 1]);
    6160        }
    6261
    63         cucul_put_str(cv, 1, i + 2, "Switching driver in 5 seconds");
     62        caca_put_str(cv, 1, i + 2, "Switching driver in 5 seconds");
    6463
    6564        caca_refresh_display(dp);
Note: See TracChangeset for help on using the changeset viewer.