Ignore:
Timestamp:
Nov 13, 2003, 5:45:25 PM (20 years ago)
Author:
Sam Hocevar
Message:
  • libee/ee.c: + Error checking in ee_init(). + Pre-generate the empty line for ee_clear().
  • libee/sprite.c: + Better error checking in ee_sprite_load().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/libee/graphics.c

    r159 r167  
    119119{
    120120    /* We could use SLsmg_cls() etc., but drawing empty lines is much faster */
    121     int x = ee_get_width();
    122121    int y = ee_get_height();
    123     char *empty_line = malloc((x + 1) * sizeof(char));
    124 
    125     memset(empty_line, ' ', x);
    126     empty_line[x] = '\0';
    127122
    128123    while(y--)
    129     {
    130         ee_putstr(0, y, empty_line);
    131     }
    132 
    133     free(empty_line);
     124        ee_putstr(0, y, _ee_empty_line);
    134125}
    135126
Note: See TracChangeset for help on using the changeset viewer.