From edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 15 Nov 2021 19:12:06 +0300 Subject: move all sources to the right place --- Library/UefiShellUfmCommandLib/menu-bar.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Library/UefiShellUfmCommandLib/menu-bar.c (limited to 'Library/UefiShellUfmCommandLib/menu-bar.c') diff --git a/Library/UefiShellUfmCommandLib/menu-bar.c b/Library/UefiShellUfmCommandLib/menu-bar.c new file mode 100644 index 0000000..db7af38 --- /dev/null +++ b/Library/UefiShellUfmCommandLib/menu-bar.c @@ -0,0 +1,25 @@ +#include + +#include "lib/tbi/screen.h" +#include "lib/tbi/win.h" +#include "menu-bar.h" + +struct window *menubar = NULL; + +BOOLEAN init_menubar(struct screen *scr) +{ + menubar = newwin(scr, scr->columns, 1, 0, 0); + if(!menubar) + return FALSE; + + wrefresh(menubar); + return TRUE; +} + +VOID free_menubar(VOID) +{ + ASSERT(menubar != NULL); + + delwin(menubar); + menubar = NULL; +} -- cgit v1.2.3-18-g5258