X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FEditStatusBar.c;h=fbf48b7e2b164cd0f93b40afe3359963fc5c6eae;hb=0ab90add0f525eb9c91ce4bc2357298c4f357d09;hp=6722b7ae8168dc00145ce3d2f0feff8ace368bab;hpb=5a2beb745f87a113bbb1db775d0450f65ceb2124;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c index 6722b7ae81..fbf48b7e2b 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c @@ -1,7 +1,7 @@ /** @file Implements statusbar interface functions. - Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+ 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 @@ -62,7 +62,7 @@ StatusBarCleanup ( typedef struct { UINT32 Foreground : 4; - UINT32 Background : 4; + UINT32 Background : 3; } STATUS_BAR_COLOR_ATTRIBUTES; typedef union { @@ -111,11 +111,12 @@ StatusBarRefresh ( // back up the 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->EnableCursor (gST->ConOut, FALSE); - gST->ConOut->SetAttribute (gST->ConOut, New.Data); + gST->ConOut->SetAttribute (gST->ConOut, New.Data & 0x7F); // // clear status bar