[gnome-boxes] Only use 'vga' driver for win7
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Only use 'vga' driver for win7
- Date: Sun, 4 Dec 2011 17:54:50 +0000 (UTC)
commit 7f60766521e0eca1032d80cd95acede644af57bd
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Dec 1 23:19:58 2011 +0200
Only use 'vga' driver for win7
The 'vga' hack is only needed for Windows 7, no need to make other OSs
suffer for that.
https://bugzilla.gnome.org/show_bug.cgi?id=665336
src/vm-creator.vala | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 67e4069..ae1826a 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -103,10 +103,7 @@ private class Boxes.VMCreator {
" <input type='tablet' bus='usb'/>\n" +
" <graphics type='spice' autoport='yes' />\n" +
" <console type='pty'/>\n" +
- " <video>\n" +
- // FIXME: Should be 'qxl', work-around for a spice bug
- " <model type='vga'/>\n" +
- " </video>\n" +
+ get_video_xml (install_media) +
" </devices>\n" +
"</domain>";
}
@@ -202,6 +199,15 @@ private class Boxes.VMCreator {
" <cmdline>ks=floppy</cmdline>\n";
}
+ private string get_video_xml (InstallerMedia install_media) {
+ // FIXME: Should be 'qxl' for every OS. Work-around for a Qemu bug
+ var type = (install_media is Win7Installer) ? "vga" : "qxl";
+
+ return " <video>\n" +
+ " <model type='" + type + "'/>\n" +
+ " </video>\n";
+ }
+
private async StoragePool get_storage_pool () throws GLib.Error {
var pool = connection.find_storage_pool_by_name (Config.PACKAGE_TARNAME);
if (pool == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]