select the mode according the configuration

This commit is contained in:
Laurent Vivier 2007-09-16 15:10:49 +00:00
parent b78ead9cf9
commit 267264c0f4
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -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);