Revision: 16542
http://sourceforge.net/p/edk2/code/16542
Author: vanjeff
Date: 2014-12-19 05:40:01 +0000 (Fri, 19 Dec 2014)
Log Message:
-----------
MdeModulePkg:
1.Add code to cover the space which is not covered by browser before.
2.Remove ESC help string for front page screen.
(Sync patch r16541 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/16541
Modified Paths:
--------------
branches/UDK2014.SP1/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
Modified:
branches/UDK2014.SP1/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
===================================================================
---
branches/UDK2014.SP1/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
2014-12-19 05:30:04 UTC (rev 16541)
+++
branches/UDK2014.SP1/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
2014-12-19 05:40:01 UTC (rev 16542)
@@ -2,7 +2,7 @@
This library class defines a set of interfaces to customize Display module
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under
the terms and conditions of the BSD License that accompanies this
distribution.
The full text of the license may be found at
@@ -165,6 +165,9 @@
SecCol = gScreenDimensions.LeftColumn +
(gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3;
ThdCol = gScreenDimensions.LeftColumn +
(gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3 * 2;
+ //
+ // + 2 means leave 1 space before the first hotkey info.
+ //
StartColumnOfHelp = gScreenDimensions.LeftColumn + 2;
LeftColumnOfHelp = gScreenDimensions.LeftColumn + 1;
RightColumnOfHelp = gScreenDimensions.RightColumn - 1;
@@ -178,6 +181,12 @@
ColumnStr2 = gLibEmptyString;
ColumnStr3 = gLibEmptyString;
+ //
+ // Clean the space at gScreenDimensions.LeftColumn + 1.
+ //
+ PrintStringAtWithWidth (StartColumnOfHelp - 1, BottomRowOfHelp,
gLibEmptyString, 1);
+ PrintStringAtWithWidth (StartColumnOfHelp - 1, TopRowOfHelp,
gLibEmptyString, 1);
+
if (Statement == NULL) {
//
// Print Key for Form without showable statement.
@@ -186,7 +195,10 @@
PrintStringAtWithWidth (StartColumnOfHelp, BottomRowOfHelp,
gLibEmptyString, ColumnWidth1);
PrintStringAtWithWidth (SecCol, BottomRowOfHelp, gLibEmptyString,
ColumnWidth2);
PrintStringAtWithWidth (StartColumnOfHelp, TopRowOfHelp, gLibEmptyString,
ColumnWidth1);
- PrintStringAtWithWidth (ThdCol, BottomRowOfHelp, gEscapeString,
ColumnWidth3);
+ if (gClassOfVfr == FORMSET_CLASS_PLATFORM_SETUP) {
+ ColumnStr3 = gEscapeString;
+ }
+ PrintStringAtWithWidth (ThdCol, BottomRowOfHelp, ColumnStr3, ColumnWidth3);
return;
}
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits