From e332cf1bed076a033f0c8229d0f5f4b29ffb6835 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 10 Mar 2006 09:43:13 +0000 Subject: [PATCH] * Assume the VGA screen is 320x200 and really resize the cucul canvas to 80x25 upon initialisation. --- caca/driver_vga.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/caca/driver_vga.c b/caca/driver_vga.c index d6285ba..6cc3a94 100644 --- a/caca/driver_vga.c +++ b/caca/driver_vga.c @@ -75,6 +75,9 @@ static int vga_init_graphics(caca_t *kk) outb(0x0a, 0x3d4); outb(tmp, 0x3d5); + /* We don't have much choice */ + _cucul_set_size(kk->qq, 80, 25); + return 0; } @@ -100,14 +103,14 @@ static int vga_set_window_title(caca_t *kk, char const *title) static unsigned int vga_get_window_width(caca_t *kk) { - /* Fallback to a 6x10 font */ - return kk->qq->width * 6; + /* Fallback to a 320x200 screen */ + return 320; } static unsigned int vga_get_window_height(caca_t *kk) { - /* Fallback to a 6x10 font */ - return kk->qq->height * 10; + /* Fallback to a 320x200 screen */ + return 200; } static void vga_display(caca_t *kk)