mirror of https://github.com/acidanthera/audk.git
Tracker merger. "There is no "NV" display when change the certain option in NT32"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3788 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7f0f1b8f45
commit
d4ff9b4446
|
@ -341,31 +341,32 @@ ProcessOptions (
|
||||||
//
|
//
|
||||||
if (!Tag->Suppress && !Tag->GrayOut) {
|
if (!Tag->Suppress && !Tag->GrayOut) {
|
||||||
CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);
|
CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
} else {
|
||||||
|
|
||||||
|
StringPtr = GetToken (PopUp, MenuOption->Handle);
|
||||||
|
|
||||||
|
CreatePopUp (GetStringWidth (StringPtr) / 2, 3, &NullCharacter, StringPtr, &NullCharacter);
|
||||||
|
|
||||||
|
do {
|
||||||
|
Status = WaitForKeyStroke (&Key);
|
||||||
|
|
||||||
|
switch (Key.UnicodeChar) {
|
||||||
|
|
||||||
|
case CHAR_CARRIAGE_RETURN:
|
||||||
|
//
|
||||||
|
// Since the value can be one byte long or two bytes long, do a CopyMem based on StorageWidth
|
||||||
|
//
|
||||||
|
CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);
|
||||||
|
FreePool (StringPtr);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);
|
||||||
}
|
}
|
||||||
|
|
||||||
StringPtr = GetToken (PopUp, MenuOption->Handle);
|
|
||||||
|
|
||||||
CreatePopUp (GetStringWidth (StringPtr) / 2, 3, &NullCharacter, StringPtr, &NullCharacter);
|
|
||||||
|
|
||||||
do {
|
|
||||||
Status = WaitForKeyStroke (&Key);
|
|
||||||
|
|
||||||
switch (Key.UnicodeChar) {
|
|
||||||
|
|
||||||
case CHAR_CARRIAGE_RETURN:
|
|
||||||
//
|
|
||||||
// Since the value can be one byte long or two bytes long, do a CopyMem based on StorageWidth
|
|
||||||
//
|
|
||||||
CopyMem (NvRamMap, &Number, MenuOption->ThisTag->StorageWidth);
|
|
||||||
FreePool (StringPtr);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3020,7 +3020,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// After the repaint operation, we should refresh the highlight.
|
// After the repaint operation, we should refresh the highlight.
|
||||||
//
|
//
|
||||||
NewLine = TRUE;
|
NewLine = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CfUiNoOperation:
|
case CfUiNoOperation:
|
||||||
|
|
Loading…
Reference in New Issue