]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/GraphicsConsoleDxe: add modes
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Apr 2022 12:41:18 +0000 (14:41 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 22 Apr 2022 18:37:48 +0000 (18:37 +0000)
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>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c

index 07436cbd15bfaca166287cb73ebcb928a04a28ab..b895dafedeaab9516df3fae3f50a21d27ce003c6 100644 (file)
@@ -40,7 +40,10 @@ GRAPHICS_CONSOLE_DEV  mGraphicsConsoleDevTemplate = {
 };\r
 \r
 GRAPHICS_CONSOLE_MODE_DATA  mGraphicsConsoleModeData[] = {\r
-  { 100, 31 },\r
+  { 100, 31 },  //  800 x 600\r
+  { 128, 40 },  // 1024 x 768\r
+  { 160, 42 },  // 1280 x 800\r
+  { 240, 56 },  // 1920 x 1080\r
   //\r
   // New modes can be added here.\r
   // The last entry is specific for full screen mode.\r