summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2019-10-17 22:33:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-10-18 12:07:12 +0200
commitfc92d092ea4f704bc4d283c3911ee9894733f4ce (patch)
treec6e03fac146f19061c7978c86d9e4c24feae4798 /vgasrc
parentdc5cc91aa14587dc1e71958320170043a2c2a747 (diff)
downloadqemu-seabios-fc92d092ea4f704bc4d283c3911ee9894733f4ce.tar.gz
Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440
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>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/svgamodes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vgasrc/svgamodes.c b/vgasrc/svgamodes.c
index 013504c..78cc68e 100644
--- a/vgasrc/svgamodes.c
+++ b/vgasrc/svgamodes.c
@@ -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 } },
+
+ /* custom resolutions for 16:9 displays */
+ { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } },
+ { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } },
+ { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } },
+ { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },
+ { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },
+ { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },
};
unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);