]> xenbits.xensource.com Git - osstest/seabios.git/commitdiff
Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440
authorUwe Kleine-König <uwe@kleine-koenig.org>
Thu, 17 Oct 2019 20:33:53 +0000 (22:33 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Oct 2019 10:07:12 +0000 (12:07 +0200)
This allows to have qemu run at the native screen resolution of my
(physical) monitor.

This is inspired by a patch created by Andreas Dangel that I found on
https://adangel.org/2015/09/11/qemu-kvm-custom-resolutions/ .

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Message-Id: <20191017203353.18898-2-uwe@kleine-koenig.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
vgasrc/svgamodes.c

index 013504c3e691b7d533fd0baa3b62b77b087dd39c..78cc68ed2aa82297fd9e7dc0d18b249215e5a1ce 100644 (file)
@@ -76,5 +76,13 @@ struct generic_svga_mode svga_modes[] VAR16 = {
     { 0x190, { MM_DIRECT, 1920, 1080, 16, 8, 16, SEG_GRAPH } },
     { 0x191, { MM_DIRECT, 1920, 1080, 24, 8, 16, SEG_GRAPH } },
     { 0x192, { MM_DIRECT, 1920, 1080, 32, 8, 16, SEG_GRAPH } },
+\r
+    /* custom resolutions for 16:9 displays */\r
+    { 0x193, { MM_DIRECT, 1600,  900, 16, 8, 16, SEG_GRAPH } },\r
+    { 0x194, { MM_DIRECT, 1600,  900, 24, 8, 16, SEG_GRAPH } },\r
+    { 0x195, { MM_DIRECT, 1600,  900, 32, 8, 16, SEG_GRAPH } },\r
+    { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },\r
+    { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },\r
+    { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },\r
 };
 unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);