diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-25 05:35:56 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-25 05:35:56 +0000 |
commit | 512122dc89dd2ed6470547a0071b4cfe94f539da (patch) | |
tree | 066ea9c48f4a3c780fda31cf85ebf3b4547fdd9e /MdeModulePkg | |
parent | 1a788cdd654967ca2a7409375ae91790759ed934 (diff) | |
download | edk2-platforms-512122dc89dd2ed6470547a0071b4cfe94f539da.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.h | 2 | ||||
-rw-r--r-- | 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;
|