Changeset 832 for libcaca/trunk/src


Ignore:
Timestamp:
Apr 21, 2006, 10:49:17 PM (14 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/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaview.c

    r819 r832  
    322322        }
    323323
    324         cucul_clear_canvas(cv, CUCUL_COLOR_BLACK);
     324        cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);
     325        cucul_clear_canvas(cv);
    325326
    326327        if(!items)
  • libcaca/trunk/src/img2irc.c

    r826 r832  
    5454
    5555    cucul_set_canvas_size(cv, cols, lines);
    56     cucul_clear_canvas(cv, CUCUL_COLOR_TRANSPARENT);
     56    cucul_set_color(cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_TRANSPARENT);
     57    cucul_clear_canvas(cv);
    5758    cucul_dither_bitmap(cv, 0, 0, cols, lines, i->dither, i->pixels);
    5859
Note: See TracChangeset for help on using the changeset viewer.