Ignore:
Timestamp:
Oct 26, 2006, 10:16:43 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Allow to create the initial canvas with a zero size. Either the application resizes it later, or the driver changes it to fit the display.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_win32.c

    r1218 r1233  
    113113
    114114    /* Set the new console size */
    115     size.X = dp->cv->width;
    116     size.Y = dp->cv->height;
     115    size.X = dp->cv->width ? dp->cv->width : 80;
     116    size.Y = dp->cv->height ? dp->cv->height : 25;
    117117    SetConsoleScreenBufferSize(dp->drv.p->screen, size);
    118118
Note: See TracChangeset for help on using the changeset viewer.