From 75cd69412775f5b7d3d39dc1fe9abac5c19c36b1 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 15 Dec 2021 15:17:24 +0300 Subject: tbi/win: use parameters of the window for displaying cursor --- Library/UefiShellUfmCommandLib/tbi/win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/UefiShellUfmCommandLib') diff --git a/Library/UefiShellUfmCommandLib/tbi/win.c b/Library/UefiShellUfmCommandLib/tbi/win.c index 48fadbc..0bf66a7 100644 --- a/Library/UefiShellUfmCommandLib/tbi/win.c +++ b/Library/UefiShellUfmCommandLib/tbi/win.c @@ -344,5 +344,6 @@ VOID wrefresh(struct window *w) } } - stdout->SetAttribute(stdout, w->scr->attr); + stdout->SetCursorPosition(stdout, w->begx + w->curx, w->begy + w->cury); + stdout->SetAttribute(stdout, w->attr[w->cury][w->curx]); } -- cgit v1.2.3-18-g5258