Ignore:
Timestamp:
Apr 21, 2006, 10:49:17 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Changed cucul_clear_canvas() again. It now uses the current foreground and background colours to clear the screen.
Location:
libcaca/trunk/test
Files:
5 edited

Legend:

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

    r819 r832  
    3636        return 1;
    3737
    38     cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     38    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     39    cucul_clear_canvas(cv);
    3940    for(i = 0; i < 16; i++)
    4041    {
  • libcaca/trunk/test/demo.c

    r819 r832  
    143143
    144144                if(demo)
    145                     cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     145                {
     146                    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     147                    cucul_clear_canvas(cv);
     148                }
    146149            }
    147150            else if(ev.type & CACA_EVENT_MOUSE_MOTION)
     
    197200    int yo = cucul_get_canvas_height(cv) - 2;
    198201
    199     cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
    200202    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     203    cucul_clear_canvas(cv);
    201204    cucul_draw_thin_box(cv, 1, 1, xo, yo);
    202205
     
    237240    i++;
    238241
    239     cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     242    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     243    cucul_clear_canvas(cv);
    240244
    241245    /* Draw the sun */
     
    350354    char buf[BUFSIZ];
    351355
    352     cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     356    cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     357    cucul_clear_canvas(cv);
    353358    for(i = 0; i < 16; i++)
    354359    {
  • libcaca/trunk/test/event.c

    r819 r832  
    8282        while(ret);
    8383
    84         cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     84        cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     85        cucul_clear_canvas(cv);
    8586
    8687        /* Print current event */
  • libcaca/trunk/test/gamma.c

    r819 r832  
    9191
    9292        /* Draw something on the mask */
    93         cucul_clear_canvas(mask, CUCUL_COLOR_BLACK);
     93        cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     94        cucul_clear_canvas(mask);
    9495        cucul_set_color(mask, CUCUL_COLOR_WHITE, CUCUL_COLOR_WHITE);
    9596        cucul_fill_ellipse(mask, (1.0 + sin(0.05 * (float)x))
  • libcaca/trunk/test/spritedit.c

    r819 r832  
    101101
    102102
    103         cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     103        cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     104        cucul_clear_canvas(cv);
    104105
    105         cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    106106        cucul_draw_thin_box(cv, 0, 0, cucul_get_canvas_width(cv) - 1,
    107107                            cucul_get_canvas_height(cv) - 1);
Note: See TracChangeset for help on using the changeset viewer.