Ignore:
Timestamp:
Apr 18, 2006, 6:04:01 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_clear() to cucul_clear_canvas() and added an argument to choose the background colour.
Location:
libcaca/trunk/test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/colors.c

    r813 r814  
    3636        return 1;
    3737
    38     cucul_clear(cv);
     38    cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    3939    for(i = 0; i < 16; i++)
    4040    {
  • libcaca/trunk/test/demo.c

    r813 r814  
    143143
    144144                if(demo)
    145                     cucul_clear(cv);
     145                    cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    146146            }
    147147            else if(ev.type & CACA_EVENT_MOUSE_MOTION)
     
    197197    int yo = cucul_get_canvas_height(cv) - 2;
    198198
    199     cucul_clear(cv);
     199    cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    200200    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    201201    cucul_draw_thin_box(cv, 1, 1, xo, yo);
     
    237237    i++;
    238238
    239     cucul_clear(cv);
     239    cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    240240
    241241    /* Draw the sun */
     
    350350    char buf[BUFSIZ];
    351351
    352     cucul_clear(cv);
     352    cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    353353    for(i = 0; i < 16; i++)
    354354    {
  • libcaca/trunk/test/event.c

    r813 r814  
    8282        while(ret);
    8383
    84         cucul_clear(cv);
     84        cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    8585
    8686        /* Print current event */
  • libcaca/trunk/test/gamma.c

    r813 r814  
    9191
    9292        /* Draw something on the mask */
    93         cucul_clear(mask);
     93        cucul_clear_canvas(mask, CUCUL_COLOR_BLACK);
    9494        cucul_set_color(mask, CUCUL_COLOR_WHITE, CUCUL_COLOR_WHITE);
    9595        cucul_fill_ellipse(mask, (1.0 + sin(0.05 * (float)x))
  • libcaca/trunk/test/spritedit.c

    r813 r814  
    101101
    102102
    103         cucul_clear(cv);
     103        cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    104104
    105105        cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
Note: See TracChangeset for help on using the changeset viewer.