mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-23 01:29:34 +00:00
select the mode according the configuration
This commit is contained in:
parent
b78ead9cf9
commit
267264c0f4
@ -521,13 +521,10 @@ vga_scroll()
|
|||||||
static void vga_clear();
|
static void vga_clear();
|
||||||
|
|
||||||
int
|
int
|
||||||
vga_init(emile_l2_header_t* info)
|
vga_init(char *mode)
|
||||||
{
|
{
|
||||||
GDHandle hdl;
|
GDHandle hdl;
|
||||||
volatile PixMapPtr pm;
|
volatile PixMapPtr pm;
|
||||||
char* mode;
|
|
||||||
|
|
||||||
mode = read_config_vga(info);
|
|
||||||
|
|
||||||
InitGraf(&qd.thePort);
|
InitGraf(&qd.thePort);
|
||||||
|
|
||||||
@ -571,8 +568,6 @@ vga_init(emile_l2_header_t* info)
|
|||||||
if (strcmp(mode, "none") != 0)
|
if (strcmp(mode, "none") != 0)
|
||||||
vga.enabled = 1;
|
vga.enabled = 1;
|
||||||
|
|
||||||
free(mode);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "head.h"
|
#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_put(char c);
|
||||||
extern void vga_print(char *s);
|
extern void vga_print(char *s);
|
||||||
|
Loading…
Reference in New Issue
Block a user