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
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
// 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