From e18f5bd2646f1a8158740d8d7d87bd2b34562cca Mon Sep 17 00:00:00 2001
From: Joursoir <chat@joursoir.net>
Date: Mon, 29 Nov 2021 16:22:14 +0300
Subject: panel: make update_marked_info()

---
 Library/UefiShellUfmCommandLib/panel.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'Library/UefiShellUfmCommandLib')

diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c
index a828689..ee80e81 100644
--- a/Library/UefiShellUfmCommandLib/panel.c
+++ b/Library/UefiShellUfmCommandLib/panel.c
@@ -61,6 +61,17 @@ STATIC VOID set_cwd(struct panel_ctx *p, CONST CHAR16 *path)
 	wrefresh(p->wcwd);
 }
 
+STATIC VOID update_marked_info(struct panel_ctx *p)
+{
+	mvwhline(p->wmarked, 0, 0, BOXDRAW_HORIZONTAL, p->wmarked->width);
+	if(p->marked) {
+		wattrset(p->wmarked, EFI_TEXT_ATTR(EFI_WHITE, EFI_BLACK));
+		mvwprintf(p->wmarked, 0, 0, L" Files: %d ", p->marked);
+		wattroff(p->wmarked);
+	}
+	wrefresh(p->wmarked);
+}
+
 struct panel_ctx *panel_alloc(struct screen *scr, CONST CHAR16 *path,
 		INT32 cols, INT32 lines, INT32 x, INT32 y)
 {
-- 
cgit v1.2.3-18-g5258