mirror of https://github.com/acidanthera/audk.git
Fix a width count error in ClearScreen function.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13596 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cd0842dc82
commit
1df5c64cf3
|
@ -1028,7 +1028,7 @@ ConsoleLoggerClearScreen (
|
|||
// Record console output history
|
||||
//
|
||||
if (!EFI_ERROR (Status)) {
|
||||
Screen = &ConsoleInfo->Buffer[(ConsoleInfo->ColsPerScreen + 1) * ConsoleInfo->CurrentStartRow];
|
||||
Screen = &ConsoleInfo->Buffer[(ConsoleInfo->ColsPerScreen + 2) * ConsoleInfo->CurrentStartRow];
|
||||
Attributes = &ConsoleInfo->Attributes[ConsoleInfo->ColsPerScreen * ConsoleInfo->CurrentStartRow];
|
||||
for ( Row = ConsoleInfo->OriginalStartRow
|
||||
; Row < (ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount)
|
||||
|
@ -1046,7 +1046,7 @@ ConsoleLoggerClearScreen (
|
|||
//
|
||||
// Skip the NULL on each column end in text buffer only
|
||||
//
|
||||
Screen++;
|
||||
Screen += 2;
|
||||
}
|
||||
ConsoleInfo->HistoryMode.CursorColumn = 0;
|
||||
ConsoleInfo->HistoryMode.CursorRow = 0;
|
||||
|
|
Loading…
Reference in New Issue