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
This commit is contained in:
lgao4 2010-10-25 05:35:56 +00:00
parent 1a788cdd65
commit 512122dc89
3 changed files with 5 additions and 4 deletions

View File

@ -269,7 +269,8 @@ SendForm (
gOptionBlockWidth = (CHAR16) ((gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3); gOptionBlockWidth = (CHAR16) ((gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3);
gHelpBlockWidth = gOptionBlockWidth; 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 // Initialize the strings for the browser, upon exit of the browser, the strings will be freed

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 4 #define LEFT_SKIPPED_COLUMNS 1
#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

@ -1134,7 +1134,7 @@ GetWidth (
Width -= SUBTITLE_INDENT; 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; 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; BottomRow = LocalScreen.BottomRow - STATUS_BAR_HEIGHT - FOOTER_HEIGHT - SCROLL_ARROW_HEIGHT - 1;
Selection->TopRow = TopRow; Selection->TopRow = TopRow;