X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FEditTitleBar.c;h=727605ccad08eef384fa210ea863866c2c5a249c;hb=ba30d5f0512196b1ee7b3d864f980e551da0ebf5;hp=23d26105c2ccd01bb36300db280b0a3e1dc35342;hpb=abbea36e3ecd725d50b950f0b4a73c3aebf3187f;p=mirror_edk2.git
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
index 23d26105c2..727605ccad 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
@@ -1,8 +1,8 @@
/** @file
Implements titlebar interface functions.
- Copyright (c) 2013, Hewlett-Packard Development Company, L.P.
- Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+ (C) Copyright 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
@@ -27,7 +27,6 @@ CHAR16 *Title = NULL;
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.
**/
EFI_STATUS
-EFIAPI
MainTitleBarInit (
CONST CHAR16 *Prompt
)
@@ -52,7 +51,6 @@ MainTitleBarInit (
Clean up the memory used.
**/
VOID
-EFIAPI
MainTitleBarCleanup (
VOID
)
@@ -86,7 +84,6 @@ typedef union {
@retval EFI_SUCCESS The operation was successful.
**/
EFI_STATUS
-EFIAPI
MainTitleBarRefresh (
IN CONST CHAR16 *FileName OPTIONAL,
IN CONST EDIT_FILE_TYPE FileType,
@@ -109,10 +106,10 @@ MainTitleBarRefresh (
//
Orig.Data = gST->ConOut->Mode->Attribute;
New.Data = 0;
- New.Colors.Foreground = Orig.Colors.Background;
- New.Colors.Background = Orig.Colors.Foreground;
+ 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