Changeset 1088
- Timestamp:
- Sep 23, 2006, 2:55:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/cucul.c
r1052 r1088 343 343 for(y = height < old_height ? height : old_height; y--; ) 344 344 { 345 uint32_t color = (cv->bgcolor << 16) | cv->fgcolor; 346 345 347 for(x = old_width; x--; ) 346 348 { … … 351 353 /* Zero the end of the line */ 352 354 for(x = width - old_width; x--; ) 355 { 353 356 chars[y * width + old_width + x] = (uint32_t)' '; 354 memset(attr + y * width + old_width, 0,355 (width - old_width) * 4);357 attr[y * width + old_width + x] = color; 358 } 356 359 } 357 360 } … … 386 389 uint32_t *chars = cv->allchars[f]; 387 390 uint32_t *attr = cv->allattr[f]; 391 uint32_t color = (cv->bgcolor << 16) | cv->fgcolor; 388 392 389 393 /* Zero the bottom of the screen */ 390 394 for(x = (height - old_height) * width; x--; ) 395 { 391 396 chars[old_height * width + x] = (uint32_t)' '; 392 memset(attr + old_height * width, 0,393 (height - old_height) * width * 4);397 attr[old_height * width + x] = color; 398 } 394 399 } 395 400 }
Note: See TracChangeset
for help on using the changeset viewer.