diff options
| author | uvok | 2026-01-11 17:03:08 +0100 |
|---|---|---|
| committer | uvok | 2026-01-11 17:03:08 +0100 |
| commit | 9e8ed43b6420d6bb1e50a140b394d5428d604fd1 (patch) | |
| tree | 07cadc741c65e8768ad1f58b287e304ee0950147 /nandgame/cpp/simpc_ui.cpp | |
| parent | baf8a3f7991e60644a22cc384f3dd3baf4f2fc05 (diff) | |
Fix resizing
Diffstat (limited to 'nandgame/cpp/simpc_ui.cpp')
| -rw-r--r-- | nandgame/cpp/simpc_ui.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index 64d799d..c87c62e 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -2,6 +2,7 @@ #include "simpc_config.h" #include "disas.h" +#include <cassert> #define MEMORY_CONTEXT 3 @@ -16,6 +17,7 @@ if (resized) { \ /* ????*/ \ resized = 0; \ + clear(); \ } \ refresh(); \ wrefresh(status_top); \ @@ -174,13 +176,6 @@ void simpc_ui_init(void) { RAM2 = newwin(numlines, 15, 10, romwidth + ram1width); wrefresh(RAM2); - int rc; - - rc = wresize(stdscr, getmaxy(stdscr) - 3, getmaxx(stdscr)); - assert(rc == 0); - rc = mvwin(stdscr, 3, 0); - assert(rc == 0); - nodelay(stdscr, TRUE); noecho(); cbreak(); |
