vl.c: default to std if cirrus is not available

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2012-09-10 01:01:44 +02:00
parent 879049a397
commit 3605ded557

8
vl.c
View file

@ -3617,8 +3617,12 @@ int main(int argc, char **argv, char **envp)
exit(1);
/* If no default VGA is requested, the default is "none". */
if (default_vga && cirrus_vga_available()) {
vga_model = "cirrus";
if (default_vga) {
if (cirrus_vga_available()) {
vga_model = "cirrus";
} else if (vga_available()) {
vga_model = "std";
}
}
select_vgahw(vga_model);