Changeset 833 for libcaca


Ignore:
Timestamp:
Apr 21, 2006, 10:51:14 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of cv->empty_line, it's now unused.
Location:
libcaca/trunk/cucul
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/cucul.c

    r826 r833  
    5454    cv->chars = NULL;
    5555    cv->attr = NULL;
    56     cv->empty_line = cv->scratch_line = NULL;
    5756
    5857    /* Initialise to a default size. 80x32 is arbitrary but matches AAlib's
     
    173172    _cucul_end_dither();
    174173
    175     free(cv->empty_line);
    176174    free(cv->scratch_line);
    177175
     
    279277    /* Recompute the scratch line and the empty line */
    280278    if(width != old_width)
    281     {
    282         cv->empty_line = realloc(cv->empty_line, width + 1);
    283         memset(cv->empty_line, ' ', width);
    284         cv->empty_line[width] = '\0';
    285 
    286279        cv->scratch_line = realloc(cv->scratch_line, width + 1);
    287     }
    288 }
    289 
     280}
     281
  • libcaca/trunk/cucul/cucul_internals.h

    r813 r833  
    3333    uint32_t *chars;
    3434    uint32_t *attr;
    35     char *empty_line, *scratch_line;
     35    char *scratch_line;
    3636
    3737    uint16_t fgcolor;
Note: See TracChangeset for help on using the changeset viewer.