From 267264c0f44cb223adfb781c974c0625b9af251a Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sun, 16 Sep 2007 15:10:49 +0000 Subject: [PATCH] select the mode according the configuration --- second/vga.c | 7 +------ second/vga.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/second/vga.c b/second/vga.c index 5446d2f..25c2b22 100644 --- a/second/vga.c +++ b/second/vga.c @@ -521,13 +521,10 @@ vga_scroll() static void vga_clear(); int -vga_init(emile_l2_header_t* info) +vga_init(char *mode) { GDHandle hdl; volatile PixMapPtr pm; - char* mode; - - mode = read_config_vga(info); InitGraf(&qd.thePort); @@ -571,8 +568,6 @@ vga_init(emile_l2_header_t* info) if (strcmp(mode, "none") != 0) vga.enabled = 1; - free(mode); - return 0; } diff --git a/second/vga.h b/second/vga.h index b22ee3d..6fe8190 100644 --- a/second/vga.h +++ b/second/vga.h @@ -9,7 +9,7 @@ #include "head.h" -extern int vga_init(emile_l2_header_t* info); +extern int vga_init(char *mode); extern void vga_put(char c); extern void vga_print(char *s);