diff options
author | Joursoir <chat@joursoir.net> | 2021-12-12 19:06:15 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-12 19:06:15 +0300 |
commit | c29317767429d06f3885375605e78adc127be495 (patch) | |
tree | f3d0083bb8fea7e89cabdc96f9d7a0e60223d3c7 /Library | |
parent | 8d677d48f105886f5cb58eeba039b0398906f37c (diff) | |
download | ufm-c29317767429d06f3885375605e78adc127be495.tar.gz ufm-c29317767429d06f3885375605e78adc127be495.tar.bz2 ufm-c29317767429d06f3885375605e78adc127be495.zip |
actions: add macro for the unactive panel
Diffstat (limited to 'Library')
-rw-r--r-- | Library/UefiShellUfmCommandLib/actions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/UefiShellUfmCommandLib/actions.c b/Library/UefiShellUfmCommandLib/actions.c index 174eb3e..fb86874 100644 --- a/Library/UefiShellUfmCommandLib/actions.c +++ b/Library/UefiShellUfmCommandLib/actions.c @@ -20,6 +20,7 @@ #define PANEL (fm_ctx.curpanel) #define LEFT_PANEL (fm_ctx.left) #define RIGHT_PANEL (fm_ctx.right) +#define UPANEL ((PANEL == LEFT_PANEL) ? RIGHT_PANEL : LEFT_PANEL) STATIC CONST CHAR16 mkdir_title[] = L" Create a new directory "; STATIC CONST CHAR16 mkdir_label[] = L"Enter directory name:"; @@ -61,7 +62,7 @@ BOOLEAN jump_down(VOID) BOOLEAN change_panel(VOID) { panel_set_active(PANEL, FALSE); - PANEL = (PANEL == LEFT_PANEL) ? RIGHT_PANEL : LEFT_PANEL; + PANEL = UPANEL; panel_set_active(PANEL, TRUE); return TRUE; } |