mirror of https://github.com/xqemu/xqemu.git
vl: Make display_type a local variable
Now display_type is only used inside main(), and don't need to be a global variable. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
cfc58cf373
commit
d29345d011
|
@ -155,7 +155,6 @@ extern int vga_interface_type;
|
||||||
extern int graphic_width;
|
extern int graphic_width;
|
||||||
extern int graphic_height;
|
extern int graphic_height;
|
||||||
extern int graphic_depth;
|
extern int graphic_depth;
|
||||||
extern DisplayType display_type;
|
|
||||||
extern int display_opengl;
|
extern int display_opengl;
|
||||||
extern const char *keyboard_layout;
|
extern const char *keyboard_layout;
|
||||||
extern int win2k_install_hack;
|
extern int win2k_install_hack;
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -129,7 +129,6 @@ static const char *data_dir[16];
|
||||||
static int data_dir_idx;
|
static int data_dir_idx;
|
||||||
const char *bios_name = NULL;
|
const char *bios_name = NULL;
|
||||||
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
|
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
|
||||||
DisplayType display_type = DT_DEFAULT;
|
|
||||||
int request_opengl = -1;
|
int request_opengl = -1;
|
||||||
int display_opengl;
|
int display_opengl;
|
||||||
static int display_remote;
|
static int display_remote;
|
||||||
|
@ -2963,6 +2962,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
bool defconfig = true;
|
bool defconfig = true;
|
||||||
bool userconfig = true;
|
bool userconfig = true;
|
||||||
bool nographic = false;
|
bool nographic = false;
|
||||||
|
DisplayType display_type = DT_DEFAULT;
|
||||||
const char *log_mask = NULL;
|
const char *log_mask = NULL;
|
||||||
const char *log_file = NULL;
|
const char *log_file = NULL;
|
||||||
char *trace_file = NULL;
|
char *trace_file = NULL;
|
||||||
|
|
Loading…
Reference in New Issue