Ignore:
Timestamp:
Mar 10, 2006, 10:43:13 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • Assume the VGA screen is 320x200 and really resize the cucul canvas to 80x25 upon initialisation.
File:
1 edited

Legend:

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

    r574 r580  
    7676    outb(tmp, 0x3d5);
    7777
     78    /* We don't have much choice */
     79    _cucul_set_size(kk->qq, 80, 25);
     80
    7881    return 0;
    7982}
     
    101104static unsigned int vga_get_window_width(caca_t *kk)
    102105{
    103     /* Fallback to a 6x10 font */
    104     return kk->qq->width * 6;
     106    /* Fallback to a 320x200 screen */
     107    return 320;
    105108}
    106109
    107110static unsigned int vga_get_window_height(caca_t *kk)
    108111{
    109     /* Fallback to a 6x10 font */
    110     return kk->qq->height * 10;
     112    /* Fallback to a 320x200 screen */
     113    return 200;
    111114}
    112115
Note: See TracChangeset for help on using the changeset viewer.