From b6ca1fd813a106092f913639c685490619e64e75 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Mon, 21 Feb 2011 10:46:14 +0000 Subject: =?UTF-8?q?Update=20the=20arrow=20position.=20Use=20the=20paramete?= =?UTF-8?q?r=E2=80=9D=20LEFT=5FSKIPPED=5FCOLUMNS=E2=80=9D=20to=20adjust=20?= =?UTF-8?q?the=20position=20from=20the=20beginning=20of=20the=20line=20to?= =?UTF-8?q?=20the=20beginning=20of=20the=20menu=20string.=20The=20arrow=20?= =?UTF-8?q?position=20and=20the=20beginning=20of=20the=20menu=20string=20a?= =?UTF-8?q?re=20fixed=20in=20one=20block=20space.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11327 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Setup.h | 2 +- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal') diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h index f5717e1c62..ba30506d1c 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h @@ -62,7 +62,7 @@ extern UINT8 SetupBrowserStrings[]; #define FRONT_PAGE_HEADER_HEIGHT 6 #define NONE_FRONT_PAGE_HEADER_HEIGHT 3 -#define LEFT_SKIPPED_COLUMNS 1 +#define LEFT_SKIPPED_COLUMNS 3 #define FOOTER_HEIGHT 4 #define STATUS_BAR_HEIGHT 1 #define SCROLL_ARROW_HEIGHT 1 diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 83b13b1932..54f9db0978 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -1793,12 +1793,14 @@ UiDisplayMenu ( Width = GetWidth (Statement, MenuOption->Handle); 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. // PrintAt ( - MenuOption->Col - LEFT_SKIPPED_COLUMNS, + MenuOption->Col - 2, Row, L"%c", GEOMETRICSHAPE_RIGHT_TRIANGLE -- cgit v1.2.3