Changeset 916 for libcaca


Ignore:
Timestamp:
Apr 26, 2006, 7:24:27 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fixed line wrapping on some weird ANSI files.
File:
1 edited

Legend:

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

    r915 r916  
    226226    {
    227227        skip = 1;
     228
     229        /* Wrap long lines */
     230        if((unsigned int)x >= width)
     231        {
     232            x = 0;
     233            y++;
     234        }
    228235
    229236        if(buffer[i] == '\x1a' && size - i >= 8
     
    355362        /* We're going to paste a character. First make sure the canvas
    356363         * is big enough. */
    357         if((unsigned int)x >= width)
    358         {
    359             x = 0;
    360             y++;
    361         }
    362 
    363364        if((unsigned int)y >= height)
    364365        {
Note: See TracChangeset for help on using the changeset viewer.