From nobody Mon Sep 16 20:07:36 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org ARC-Seal: i=1; a=rsa-sha256; t=1564588310; cv=none; d=zoho.com; s=zohoarc; b=decqHbWqT1EucLALfZhUrTJFmpa5Vwjme3z3Y1rSH4Xig5nfC52vsLVFyW9Afp4juSIGjtIAggJUTLN1sZ/XPPpOYqqulJvDLNU8A2hmnY0gh46ZrvAPstBoitRGuRLSdU5VMgye+vI20a009crHOYmYjJTocQsJDNTwcZkMAWA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564588310; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=oxrAw7gku2owEQ8AzDAI6XC0/ILEDXEp8Jk61k0Zeyc=; b=iJQA1G9dDPNtd/CSeGVE3R95cOAWP5KfoqrO1HwNV6xqxYt2IJVfBnagtdlRzqBuDGlPDaqkg5tAk+9CdPj1yAM+ZO+c0sMr8nj5FCSiRoB6KUe+yDCEmMzmotjRQ4J0XlNqu228v+qP63b9f4mqx2qqPTef/wbYMcaUqSv9G6Y= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1564588310222933.2482064674734; Wed, 31 Jul 2019 08:51:50 -0700 (PDT) Received: from [192.168.203.99] (mailu_mailman-core_1.mailu_default [192.168.203.99]) by coreboot.org (Postfix) with ESMTP id 29030601819; Wed, 31 Jul 2019 15:51:46 +0000 (UTC) Received: from antares.kleine-koenig.org (antares.kleine-koenig.org [94.130.110.236]) by coreboot.org (Postfix) with ESMTP id 4673D6017F9 for ; Wed, 31 Jul 2019 15:51:27 +0000 (UTC) Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id 2462E747233; Wed, 31 Jul 2019 17:51:27 +0200 (CEST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Gerd Hoffmann , Kevin O'Connor Date: Wed, 31 Jul 2019 17:51:15 +0200 Message-Id: <20190731155115.16571-3-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190731155115.16571-1-uwe@kleine-koenig.org> References: <20190731155115.16571-1-uwe@kleine-koenig.org> MIME-Version: 1.0 X-Spam: Yes Message-ID-Hash: 277OF3GVEOZVLKIJQEU3MLANYFDV7PS2 X-Message-ID-Hash: 277OF3GVEOZVLKIJQEU3MLANYFDV7PS2 X-MailFrom: uwe@kleine-koenig.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: seabios@seabios.org X-Mailman-Version: 3.2.2 Precedence: list Subject: [SeaBIOS] [PATCH v3 2/2] Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440 List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: +++++ X-Spam-Level: ***** Authentication-Results: coreboot.org Content-Type: text/plain; charset="utf-8" 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/ . --- vgasrc/svgamodes.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vgasrc/svgamodes.c b/vgasrc/svgamodes.c index 013504c3e691..f89ebef950a8 100644 --- a/vgasrc/svgamodes.c +++ b/vgasrc/svgamodes.c @@ -76,5 +76,13 @@ struct generic_svga_mode svga_modes[] VAR16 =3D { { 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 =3D ARRAY_SIZE(svga_modes); --=20 2.20.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org