X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FEditTitleBar.c;h=ce7a2520ce52b14d8dbc39ddbb7ee0733feb9f3d;hb=ecd07f373707981687b5d66b62c3812cfe587faf;hp=08d01ab09c617847f78918fe14d99081c9299c03;hpb=e0c2cc6f8975adde2c8605ae7fd76237bbcc7539;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c index 08d01ab09c..ce7a2520ce 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c @@ -1,7 +1,8 @@ /** @file Implements titlebar interface functions. - Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2013, Hewlett-Packard Development Company, L.P. + Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -107,10 +108,11 @@ MainTitleBarRefresh ( // backup the old screen attributes // Orig.Data = gST->ConOut->Mode->Attribute; - New.Colors.Foreground = Orig.Colors.Background; - New.Colors.Background = Orig.Colors.Foreground; + New.Data = 0; + New.Colors.Foreground = Orig.Colors.Background & 0xF; + New.Colors.Background = Orig.Colors.Foreground & 0x7; - gST->ConOut->SetAttribute (gST->ConOut, New.Data); + gST->ConOut->SetAttribute (gST->ConOut, New.Data & 0x7F); // // clear the title line @@ -169,6 +171,8 @@ MainTitleBarRefresh ( case FileTypeAscii: case FileTypeUnicode: if (FileType == FileTypeAscii){ + ShellPrintEx (-1,-1, L" ASCII "); + } else { ShellPrintEx (-1,-1, L" UNICODE "); } // @@ -185,7 +189,7 @@ MainTitleBarRefresh ( // // Print the offset. // - ASSERT(FALSE); + ShellPrintEx (-1,-1, L"Offset %X | Size %X", Offset, Size); case FileTypeFileBuffer: break; default: