- Timestamp:
- Apr 21, 2006, 10:51:14 PM (15 years ago)
- Location:
- libcaca/trunk/cucul
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/cucul.c
r826 r833 54 54 cv->chars = NULL; 55 55 cv->attr = NULL; 56 cv->empty_line = cv->scratch_line = NULL;57 56 58 57 /* Initialise to a default size. 80x32 is arbitrary but matches AAlib's … … 173 172 _cucul_end_dither(); 174 173 175 free(cv->empty_line);176 174 free(cv->scratch_line); 177 175 … … 279 277 /* Recompute the scratch line and the empty line */ 280 278 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 286 279 cv->scratch_line = realloc(cv->scratch_line, width + 1); 287 } 288 } 289 280 } 281 -
libcaca/trunk/cucul/cucul_internals.h
r813 r833 33 33 uint32_t *chars; 34 34 uint32_t *attr; 35 char * empty_line, *scratch_line;35 char *scratch_line; 36 36 37 37 uint16_t fgcolor;
Note: See TracChangeset
for help on using the changeset viewer.