diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-23 05:30:08 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-23 05:30:08 +0000 |
commit | 36fe40c2ea61a81b7f004886682e55fb2d5358be (patch) | |
tree | 561545cf3b4ddb433f1b2f8761c0da9450c74705 /MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | |
parent | d9e5c1fffb22d39dd52ef23febe40cd4e2ee0965 (diff) | |
download | edk2-36fe40c2ea61a81b7f004886682e55fb2d5358be.zip edk2-36fe40c2ea61a81b7f004886682e55fb2d5358be.tar.gz edk2-36fe40c2ea61a81b7f004886682e55fb2d5358be.tar.bz2 |
1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
2) Remove the duplicated functions implementation from the modules that reference these APIs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5283 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Ui.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 132 |
1 files changed, 88 insertions, 44 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 06479c7..064a8d9 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -33,53 +33,97 @@ MENU_REFRESH_ENTRY *gMenuRefreshHead; // Search table for UiDisplayMenu() // SCAN_CODE_TO_SCREEN_OPERATION gScanCodeToOperation[] = { - SCAN_UP, - UiUp, - SCAN_DOWN, - UiDown, - SCAN_PAGE_UP, - UiPageUp, - SCAN_PAGE_DOWN, - UiPageDown, - SCAN_ESC, - UiReset, - SCAN_F2, - UiPrevious, - SCAN_LEFT, - UiLeft, - SCAN_RIGHT, - UiRight, - SCAN_F9, - UiDefault, - SCAN_F10, - UiSave + { + SCAN_UP, + UiUp, + }, + { + SCAN_DOWN, + UiDown, + }, + { + SCAN_PAGE_UP, + UiPageUp, + }, + { + SCAN_PAGE_DOWN, + UiPageDown, + }, + { + SCAN_ESC, + UiReset, + }, + { + SCAN_F2, + UiPrevious, + }, + { + SCAN_LEFT, + UiLeft, + }, + { + SCAN_RIGHT, + UiRight, + }, + { + SCAN_F9, + UiDefault, + }, + { + SCAN_F10, + UiSave + } }; SCREEN_OPERATION_T0_CONTROL_FLAG gScreenOperationToControlFlag[] = { - UiNoOperation, - CfUiNoOperation, - UiDefault, - CfUiDefault, - UiSelect, - CfUiSelect, - UiUp, - CfUiUp, - UiDown, - CfUiDown, - UiLeft, - CfUiLeft, - UiRight, - CfUiRight, - UiReset, - CfUiReset, - UiSave, - CfUiSave, - UiPrevious, - CfUiPrevious, - UiPageUp, - CfUiPageUp, - UiPageDown, - CfUiPageDown + { + UiNoOperation, + CfUiNoOperation, + }, + { + UiDefault, + CfUiDefault, + }, + { + UiSelect, + CfUiSelect, + }, + { + UiUp, + CfUiUp, + }, + { + UiDown, + CfUiDown, + }, + { + UiLeft, + CfUiLeft, + }, + { + UiRight, + CfUiRight, + }, + { + UiReset, + CfUiReset, + }, + { + UiSave, + CfUiSave, + }, + { + UiPrevious, + CfUiPrevious, + }, + { + UiPageUp, + CfUiPageUp, + }, + { + UiPageDown, + CfUiPageDown + } }; |