Changeset 1238


Ignore:
Timestamp:
Oct 26, 2006, 11:17:21 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Allow to import empty files or files with only empty lines.
File:
1 edited

Legend:

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

    r1236 r1238  
    233233        x++;
    234234    }
     235
     236    if(y > height)
     237        cucul_set_canvas_size(cv, width, height = y);
    235238
    236239    return cv;
     
    432435    }
    433436
     437    if((unsigned int)y > height)
     438    {
     439        cucul_set_color(cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_TRANSPARENT);
     440        cucul_set_canvas_size(cv, width, height = y);
     441    }
     442
    434443    return cv;
    435444}
Note: See TracChangeset for help on using the changeset viewer.