mirror of https://github.com/acidanthera/audk.git
fix refresh menu save attribute error. not consider the grayout attribute.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11329 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d66e9f0d04
commit
1fcd34f875
|
@ -1876,7 +1876,11 @@ UiDisplayMenu (
|
|||
MenuRefreshEntry->Selection = Selection;
|
||||
MenuRefreshEntry->CurrentColumn = MenuOption->OptCol;
|
||||
MenuRefreshEntry->CurrentRow = MenuOption->Row;
|
||||
if (MenuOption->GrayOut) {
|
||||
MenuRefreshEntry->CurrentAttribute = FIELD_TEXT_GRAYED | FIELD_BACKGROUND;
|
||||
} else {
|
||||
MenuRefreshEntry->CurrentAttribute = PcdGet8 (PcdBrowserFieldTextColor) | FIELD_BACKGROUND;
|
||||
}
|
||||
gMenuRefreshHead = MenuRefreshEntry;
|
||||
} else {
|
||||
//
|
||||
|
@ -1894,9 +1898,13 @@ UiDisplayMenu (
|
|||
MenuRefreshEntry->Selection = Selection;
|
||||
MenuRefreshEntry->CurrentColumn = MenuOption->OptCol;
|
||||
MenuRefreshEntry->CurrentRow = MenuOption->Row;
|
||||
if (MenuOption->GrayOut) {
|
||||
MenuRefreshEntry->CurrentAttribute = FIELD_TEXT_GRAYED | FIELD_BACKGROUND;
|
||||
} else {
|
||||
MenuRefreshEntry->CurrentAttribute = PcdGet8 (PcdBrowserFieldTextColor) | FIELD_BACKGROUND;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Width = (UINT16) gOptionBlockWidth;
|
||||
OriginalRow = Row;
|
||||
|
@ -2202,7 +2210,11 @@ UiDisplayMenu (
|
|||
//
|
||||
if (gMenuRefreshHead != NULL) {
|
||||
for (MenuRefreshEntry = gMenuRefreshHead; MenuRefreshEntry != NULL; MenuRefreshEntry = MenuRefreshEntry->Next) {
|
||||
if (MenuOption->GrayOut) {
|
||||
MenuRefreshEntry->CurrentAttribute = FIELD_TEXT_GRAYED | FIELD_BACKGROUND;
|
||||
} else {
|
||||
MenuRefreshEntry->CurrentAttribute = PcdGet8 (PcdBrowserFieldTextColor) | FIELD_BACKGROUND;
|
||||
}
|
||||
if (MenuRefreshEntry->MenuOption == MenuOption) {
|
||||
MenuRefreshEntry->CurrentAttribute = PcdGet8 (PcdBrowserFieldTextHighlightColor) | PcdGet8 (PcdBrowserFieldBackgroundHighlightColor);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue