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

    r1218 r1233  
    8787    char *argv[2] = { "", NULL };
    8888    char const * const * fonts;
    89     unsigned int width = 0, height = 0;
     89    unsigned int width = dp->cv->width, height = dp->cv->height;
    9090    int argc = 1;
    9191
     
    100100#endif
    101101
    102     if(width && height)
    103         _cucul_set_canvas_size(dp->cv, width, height);
    104 
     102    _cucul_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32);
    105103
    106104    /* Load a libcucul internal font */
Note: See TracChangeset for help on using the changeset viewer.