From 512122dc89dd2ed6470547a0071b4cfe94f539da Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 25 Oct 2010 05:35:56 +0000 Subject: [PATCH] Reserve one column at left screen to be more visually. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10978 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 3 ++- MdeModulePkg/Universal/SetupBrowserDxe/Setup.h | 2 +- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index 42edc08970..aaff62a6cb 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -269,7 +269,8 @@ SendForm ( gOptionBlockWidth = (CHAR16) ((gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3); gHelpBlockWidth = gOptionBlockWidth; - gPromptBlockWidth = gOptionBlockWidth; + gPromptBlockWidth = gOptionBlockWidth + LEFT_SKIPPED_COLUMNS; + gOptionBlockWidth = gOptionBlockWidth - LEFT_SKIPPED_COLUMNS; // // Initialize the strings for the browser, upon exit of the browser, the strings will be freed diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h index 5239b44caa..f5717e1c62 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 4 +#define LEFT_SKIPPED_COLUMNS 1 #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 3448df8d19..a77d4a9e02 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -1134,7 +1134,7 @@ GetWidth ( Width -= SUBTITLE_INDENT; } - return Width; + return Width - LEFT_SKIPPED_COLUMNS; } /** @@ -1704,7 +1704,7 @@ UiDisplayMenu ( Row = LocalScreen.TopRow + NONE_FRONT_PAGE_HEADER_HEIGHT + SCROLL_ARROW_HEIGHT; } - Col = LocalScreen.LeftColumn; + Col = LocalScreen.LeftColumn + LEFT_SKIPPED_COLUMNS; BottomRow = LocalScreen.BottomRow - STATUS_BAR_HEIGHT - FOOTER_HEIGHT - SCROLL_ARROW_HEIGHT - 1; Selection->TopRow = TopRow;