diff options
author | Joursoir <chat@joursoir.net> | 2021-11-27 16:56:54 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-11-27 16:56:54 +0300 |
commit | f031dc9d65df69a74efa9a2021fcdecd59b79702 (patch) | |
tree | 7fd4f47be9fa04850478faf33197eada041c45a3 /Library | |
parent | c449ba91eed64e2862cb1c1ac0627a4d5a7b511f (diff) | |
download | ufm-f031dc9d65df69a74efa9a2021fcdecd59b79702.tar.gz ufm-f031dc9d65df69a74efa9a2021fcdecd59b79702.tar.bz2 ufm-f031dc9d65df69a74efa9a2021fcdecd59b79702.zip |
panel: add the window for display the amount of marked files
Diffstat (limited to 'Library')
-rw-r--r-- | Library/UefiShellUfmCommandLib/panel.c | 6 | ||||
-rw-r--r-- | Library/UefiShellUfmCommandLib/panel.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index 850191f..3c6cc6c 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -57,6 +57,10 @@ struct panel_ctx *panel_alloc(struct screen *scr, CONST CHAR16 *path, if(!panel->wfname) break; + panel->wmarked = newwin(scr, cols - 4, 1, x + 2, lines - 2); + if(!panel->wmarked) + break; + res = TRUE; } while(0); // END DO @@ -93,6 +97,8 @@ VOID panel_release(struct panel_ctx *p) delwin(p->wlist); if(p->wfname) delwin(p->wfname); + if(p->wmarked) + delwin(p->wmarked); FreePool(p); } diff --git a/Library/UefiShellUfmCommandLib/panel.h b/Library/UefiShellUfmCommandLib/panel.h index c4cebdf..17a3469 100644 --- a/Library/UefiShellUfmCommandLib/panel.h +++ b/Library/UefiShellUfmCommandLib/panel.h @@ -11,7 +11,7 @@ struct fs_array; struct panel_ctx { BOOLEAN show_fs; // is filesystems showing now? struct window *wbg; // static window - struct window *wcwd, *wlist, *wfname; // dynamic windows + struct window *wcwd, *wlist, *wfname, *wmarked; // dynamic windows UINTN name_cols; CONST CHAR16 *cwd; // current work directory |