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_x11.c

    r1218 r1233  
    6868    char const *fonts[] = { NULL, "8x13bold", "fixed" }, **parser;
    6969    char const *geometry;
    70     unsigned int width = 0, height = 0;
     70    unsigned int width = dp->cv->width, height = dp->cv->height;
    7171    int i;
    7272
     
    7979#endif
    8080
    81     if(width && height)
    82         _cucul_set_canvas_size(dp->cv, width, height);
     81    _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32);
    8382
    8483    dp->drv.p->dpy = XOpenDisplay(NULL);
Note: See TracChangeset for help on using the changeset viewer.