]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
1. Sync the tracker for supporting the ModeNumber larger than 2.
[mirror_edk2.git] / MdeModulePkg / Universal / Console / GraphicsConsoleDxe / GraphicsConsole.c
index 0f83803a3793c16213af4ca28dabc1b3f15d2e7d..37e816af019f1f721f9244743ba726c248fdf8c9 100644 (file)
@@ -1157,7 +1157,7 @@ GraphicsConsoleConOutQueryMode (
   GRAPHICS_CONSOLE_DEV  *Private;\r
   EFI_STATUS            Status;\r
   EFI_TPL               OldTpl;\r
-\r
+       \r
   if (ModeNumber >= (UINTN) This->Mode->MaxMode) {\r
     return EFI_UNSUPPORTED;\r
   }\r
@@ -1280,10 +1280,10 @@ GraphicsConsoleConOutSetMode (
       goto Done;\r
     }\r
     //\r
-    // Otherwise, the size of the text console and/or the UGA mode will be changed,\r
-    // so turn off the cursor, and free the LineBuffer for the current mode\r
+    // Otherwise, the size of the text console and/or the GOP/UGA mode will be changed,\r
+    // so erase the cursor, and free the LineBuffer for the current mode\r
     //\r
-    This->EnableCursor (This, FALSE);\r
+    EraseCursor (This);\r
 \r
     FreePool (Private->LineBuffer);\r
   }\r
@@ -1377,7 +1377,6 @@ GraphicsConsoleConOutSetMode (
   // Move the text cursor to the upper left hand corner of the displat and enable it\r
   //\r
   This->SetCursorPosition (This, 0, 0);\r
-  This->EnableCursor (This, TRUE);\r
 \r
   Status = EFI_SUCCESS;\r
 \r