Curses: unnecessary window erasing

When removing a temporary (menu, text, popup) window, the code
was erasing it from memory and then refreshing the screen.
This is unnecessary, as we're refreshing all the windows anyway.
This commit is contained in:
Pasi Kallinen
2024-03-16 13:56:27 +02:00
parent fabbb491e8
commit c91d8d9450

View File

@@ -154,8 +154,6 @@ curses_create_window(int width, int height, orient orientation)
void
curses_destroy_win(WINDOW *win)
{
werase(win);
wrefresh(win);
delwin(win);
if (win == activemenu)
activemenu = NULL;