Update the arrow position.

Use the parameter” LEFT_SKIPPED_COLUMNS” to adjust the position from the beginning of the line to the beginning of the menu string.
The arrow position and the beginning of the menu string are fixed in one block space.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11327 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-02-21 10:46:14 +00:00
parent 1b71e7f1ad
commit b6ca1fd813
2 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,7 @@ extern UINT8 SetupBrowserStrings[];
#define FRONT_PAGE_HEADER_HEIGHT 6 #define FRONT_PAGE_HEADER_HEIGHT 6
#define NONE_FRONT_PAGE_HEADER_HEIGHT 3 #define NONE_FRONT_PAGE_HEADER_HEIGHT 3
#define LEFT_SKIPPED_COLUMNS 1 #define LEFT_SKIPPED_COLUMNS 3
#define FOOTER_HEIGHT 4 #define FOOTER_HEIGHT 4
#define STATUS_BAR_HEIGHT 1 #define STATUS_BAR_HEIGHT 1
#define SCROLL_ARROW_HEIGHT 1 #define SCROLL_ARROW_HEIGHT 1

View File

@ -1793,12 +1793,14 @@ UiDisplayMenu (
Width = GetWidth (Statement, MenuOption->Handle); Width = GetWidth (Statement, MenuOption->Handle);
OriginalRow = Row; OriginalRow = Row;
if (Statement->Operand == EFI_IFR_REF_OP && ((gClassOfVfr & FORMSET_CLASS_PLATFORM_SETUP) == FORMSET_CLASS_PLATFORM_SETUP)) { if (Statement->Operand == EFI_IFR_REF_OP &&
((gClassOfVfr & FORMSET_CLASS_PLATFORM_SETUP) == FORMSET_CLASS_PLATFORM_SETUP) &&
MenuOption->Col > 2) {
// //
// Print Arrow for Goto button. // Print Arrow for Goto button.
// //
PrintAt ( PrintAt (
MenuOption->Col - LEFT_SKIPPED_COLUMNS, MenuOption->Col - 2,
Row, Row,
L"%c", L"%c",
GEOMETRICSHAPE_RIGHT_TRIANGLE GEOMETRICSHAPE_RIGHT_TRIANGLE