From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io
Cc: Erdem Aktas <erdemaktas@google.com>,
Sami Mujawar <sami.mujawar@arm.com>,
Julien Grall <julien@xen.org>,
James Bottomley <jejb@linux.ibm.com>,
Anthony Perard <anthony.perard@citrix.com>,
Min Xu <min.m.xu@intel.com>, Gerd Hoffmann <kraxel@redhat.com>,
Oliver Steffen <osteffen@redhat.com>, Ray Ni <ray.ni@intel.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Jordan Justen <jordan.l.justen@intel.com>,
Jian J Wang <jian.j.wang@intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Brijesh Singh <brijesh.singh@amd.com>,
Jiewen Yao <jiewen.yao@intel.com>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Zhichao Gao <zhichao.gao@intel.com>,
Pawel Polawski <ppolawsk@redhat.com>
Subject: [PATCH 1/3] MdeModulePkg/GraphicsConsoleDxe: add modes
Date: Thu, 7 Apr 2022 13:36:15 +0200 [thread overview]
Message-ID: <20220407113617.2217351-2-kraxel@redhat.com> (raw)
In-Reply-To: <20220407113617.2217351-1-kraxel@redhat.com>
Add modes for a few common display resolutions higher than 800x600,
specifically 1024x768, 1280x800 and 1920x1080, so ConSplitterDxe has
more options available.
The mode list is not use as-is, InitializeGraphicsConsoleTextMode() will
check the list and filter out any modes which don't fit to the screen,
so this will also work fine for small displays.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
.../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
index 07436cbd15bf..b895dafedeaa 100644
--- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
+++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
@@ -40,7 +40,10 @@ GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate = {
};
GRAPHICS_CONSOLE_MODE_DATA mGraphicsConsoleModeData[] = {
- { 100, 31 },
+ { 100, 31 }, // 800 x 600
+ { 128, 40 }, // 1024 x 768
+ { 160, 42 }, // 1280 x 800
+ { 240, 56 }, // 1920 x 1080
//
// New modes can be added here.
// The last entry is specific for full screen mode.
--
2.35.1
next prev parent reply other threads:[~2022-04-07 11:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 11:36 [PATCH 0/3] add and use more video modes Gerd Hoffmann
2022-04-07 11:36 ` Gerd Hoffmann [this message]
2022-04-08 0:38 ` 回复: [edk2-devel] [PATCH 1/3] MdeModulePkg/GraphicsConsoleDxe: add modes gaoliming
2022-04-07 11:36 ` [PATCH 2/3] OvmfPkg: clear PcdConOut{Row,Column} Gerd Hoffmann
2022-04-07 11:36 ` [PATCH 3/3] ArmVirtPkg: " Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220407113617.2217351-2-kraxel@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox