diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-21 09:40:59 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-21 09:40:59 +0000 |
commit | 7347d5d6e62ddd214f6bee9dbf8074a11015ece5 (patch) | |
tree | cd5542a8069d5b04d1c276e7b5ad32c4d28bd588 /MdeModulePkg/Universal/Console/GraphicsConsoleDxe | |
parent | 0ca3bcbc900b3221b9efcdbf168c27d85f98c49e (diff) | |
download | edk2-platforms-7347d5d6e62ddd214f6bee9dbf8074a11015ece5.tar.xz |
1. Sync the tracker for supporting the ModeNumber larger than 2.
2. Fixed one bug in SetMode(), Cursor should not be enabled with mandatory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4594 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Console/GraphicsConsoleDxe')
-rw-r--r-- | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 0f83803a37..37e816af01 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -1157,7 +1157,7 @@ GraphicsConsoleConOutQueryMode ( GRAPHICS_CONSOLE_DEV *Private;
EFI_STATUS Status;
EFI_TPL OldTpl;
-
+
if (ModeNumber >= (UINTN) This->Mode->MaxMode) {
return EFI_UNSUPPORTED;
}
@@ -1280,10 +1280,10 @@ GraphicsConsoleConOutSetMode ( goto Done;
}
//
- // Otherwise, the size of the text console and/or the UGA mode will be changed,
- // so turn off the cursor, and free the LineBuffer for the current mode
+ // Otherwise, the size of the text console and/or the GOP/UGA mode will be changed,
+ // so erase the cursor, and free the LineBuffer for the current mode
//
- This->EnableCursor (This, FALSE);
+ EraseCursor (This);
FreePool (Private->LineBuffer);
}
@@ -1377,7 +1377,6 @@ GraphicsConsoleConOutSetMode ( // Move the text cursor to the upper left hand corner of the displat and enable it
//
This->SetCursorPosition (This, 0, 0);
- This->EnableCursor (This, TRUE);
Status = EFI_SUCCESS;
|