Created
July 5, 2022 02:17
-
-
Save heatd/5f8ddcff32e5b1b8f57a559d53e93ebc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a87a7b56965aaa0bdb62283077b7c8a3ed7d5563 Mon Sep 17 00:00:00 2001 | |
From: Pedro Falcato <pedro.falcato@gmail.com> | |
Date: Tue, 5 Jul 2022 03:15:56 +0100 | |
Subject: [PATCH] MdeModulePkg/GraphicsConsoleDxe: Hack to make the fullscreen | |
console work | |
I'm not even Signing-off: on this one | |
--- | |
.../Console/GraphicsConsoleDxe/GraphicsConsole.c | 12 ++++++++---- | |
1 file changed, 8 insertions(+), 4 deletions(-) | |
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | |
index b895dafede..ee9d3240d0 100644 | |
--- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | |
+++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | |
@@ -622,6 +622,8 @@ GraphicsConsoleControllerDriverStart ( | |
} | |
} | |
+ PreferMode = MaxMode - 1; | |
+ | |
Private->SimpleTextOutput.Mode->Mode = (INT32)PreferMode; | |
DEBUG ((DEBUG_INFO, "Graphics Console Started, Mode: %d\n", PreferMode)); | |
@@ -964,10 +966,12 @@ GraphicsConsoleConOutOutputString ( | |
// | |
// Current mode | |
// | |
- Mode = This->Mode->Mode; | |
- Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This); | |
- GraphicsOutput = Private->GraphicsOutput; | |
- UgaDraw = Private->UgaDraw; | |
+ | |
+ This->Mode->Mode = 4; | |
+ Mode = This->Mode->Mode; | |
+ Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This); | |
+ GraphicsOutput = Private->GraphicsOutput; | |
+ UgaDraw = Private->UgaDraw; | |
MaxColumn = Private->ModeData[Mode].Columns; | |
MaxRow = Private->ModeData[Mode].Rows; | |
-- | |
2.37.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment