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:
@ -1028,7 +1028,7 @@ ConsoleLoggerClearScreen (
|
|||||||
// Record console output history
|
// Record console output history
|
||||||
//
|
//
|
||||||
if (!EFI_ERROR (Status)) {
|
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];
|
Attributes = &ConsoleInfo->Attributes[ConsoleInfo->ColsPerScreen * ConsoleInfo->CurrentStartRow];
|
||||||
for ( Row = ConsoleInfo->OriginalStartRow
|
for ( Row = ConsoleInfo->OriginalStartRow
|
||||||
; Row < (ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount)
|
; Row < (ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount)
|
||||||
@ -1046,7 +1046,7 @@ ConsoleLoggerClearScreen (
|
|||||||
//
|
//
|
||||||
// Skip the NULL on each column end in text buffer only
|
// Skip the NULL on each column end in text buffer only
|
||||||
//
|
//
|
||||||
Screen++;
|
Screen += 2;
|
||||||
}
|
}
|
||||||
ConsoleInfo->HistoryMode.CursorColumn = 0;
|
ConsoleInfo->HistoryMode.CursorColumn = 0;
|
||||||
ConsoleInfo->HistoryMode.CursorRow = 0;
|
ConsoleInfo->HistoryMode.CursorRow = 0;
|
||||||
|
Reference in New Issue
Block a user