mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Optional "precise" VGA retrace support
Selected via: -vga <name>,retrace=precise git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5336 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3893c124e7
commit
cb5a7aa8c3
5 changed files with 220 additions and 6 deletions
15
vl.c
15
vl.c
|
@ -174,6 +174,7 @@ int nb_drives;
|
|||
/* point to the block driver where the snapshots are managed */
|
||||
BlockDriverState *bs_snapshots;
|
||||
int vga_ram_size;
|
||||
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
|
||||
static DisplayState display_state;
|
||||
int nographic;
|
||||
int curses;
|
||||
|
@ -8203,7 +8204,19 @@ static void select_vgahw (const char *p)
|
|||
fprintf(stderr, "Unknown vga type: %s\n", p);
|
||||
exit(1);
|
||||
}
|
||||
if (*opts) goto invalid_vga;
|
||||
while (*opts) {
|
||||
const char *nextopt;
|
||||
|
||||
if (strstart(opts, ",retrace=", &nextopt)) {
|
||||
opts = nextopt;
|
||||
if (strstart(opts, "dumb", &nextopt))
|
||||
vga_retrace_method = VGA_RETRACE_DUMB;
|
||||
else if (strstart(opts, "precise", &nextopt))
|
||||
vga_retrace_method = VGA_RETRACE_PRECISE;
|
||||
else goto invalid_vga;
|
||||
} else goto invalid_vga;
|
||||
opts = nextopt;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue