mirror of https://github.com/xqemu/xqemu.git
simplify vga selection (Gerd Hoffmann)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7227 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9306acb509
commit
28b85ed8db
15
vl.c
15
vl.c
|
@ -4222,23 +4222,16 @@ static void select_vgahw (const char *p)
|
||||||
{
|
{
|
||||||
const char *opts;
|
const char *opts;
|
||||||
|
|
||||||
|
cirrus_vga_enabled = 0;
|
||||||
|
std_vga_enabled = 0;
|
||||||
|
vmsvga_enabled = 0;
|
||||||
if (strstart(p, "std", &opts)) {
|
if (strstart(p, "std", &opts)) {
|
||||||
std_vga_enabled = 1;
|
std_vga_enabled = 1;
|
||||||
cirrus_vga_enabled = 0;
|
|
||||||
vmsvga_enabled = 0;
|
|
||||||
} else if (strstart(p, "cirrus", &opts)) {
|
} else if (strstart(p, "cirrus", &opts)) {
|
||||||
cirrus_vga_enabled = 1;
|
cirrus_vga_enabled = 1;
|
||||||
std_vga_enabled = 0;
|
|
||||||
vmsvga_enabled = 0;
|
|
||||||
} else if (strstart(p, "vmware", &opts)) {
|
} else if (strstart(p, "vmware", &opts)) {
|
||||||
cirrus_vga_enabled = 0;
|
|
||||||
std_vga_enabled = 0;
|
|
||||||
vmsvga_enabled = 1;
|
vmsvga_enabled = 1;
|
||||||
} else if (strstart(p, "none", &opts)) {
|
} else if (!strstart(p, "none", &opts)) {
|
||||||
cirrus_vga_enabled = 0;
|
|
||||||
std_vga_enabled = 0;
|
|
||||||
vmsvga_enabled = 0;
|
|
||||||
} else {
|
|
||||||
invalid_vga:
|
invalid_vga:
|
||||||
fprintf(stderr, "Unknown vga type: %s\n", p);
|
fprintf(stderr, "Unknown vga type: %s\n", p);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue