]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/GraphicsConsoleDxe: Change default CursorVisible to FALSE
authorSamer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Sun, 20 Dec 2020 13:53:53 +0000 (21:53 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Jan 2021 05:27:29 +0000 (05:27 +0000)
REF: https://github.com/pftf/RPi4/issues/115

GraphicsConsoleDxe defaults the ConOut Mode.CursorVisible to TRUE.
However, the driver never draws the cursor during init. This results
in the first call to disable the cursor (using ConOut->EnableCursor(FALSE))
to actually draw the cursor on the screen, as the logic in FlushCursor
depends on the Mode.CursorVisible state to determine if it should draw or
erase the cursor.

Fix by changing the default CursorVisible in this driver to FALSE.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Ard Biesheuvel <Ard.Biesheuvel@arm.com>
Cc: Pete Batard <pete@akeo.ie>
Signed-off-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Pete Batard <pete@akeo.ie>
Tested-by: Pete Batard <pete@akeo.ie>
(On an RPi4 platform where we had this annoyance of an unwanted cursor
displaying on top of the platform logo)

MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c

index c042451a9b5234baf309d7626c5a41755355fb8e..6b8d11d587d1fd077e5d07e183d95424f64afabb 100644 (file)
@@ -33,7 +33,7 @@ GRAPHICS_CONSOLE_DEV    mGraphicsConsoleDevTemplate = {
     EFI_TEXT_ATTR(EFI_LIGHTGRAY, EFI_BLACK),\r
     0,\r
     0,\r
-    TRUE\r
+    FALSE\r
   },\r
   (GRAPHICS_CONSOLE_MODE_DATA *) NULL,\r
   (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *) NULL\r