From 8bf039847599dd0828b42a83bd2addb6d0b28cf1 Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 11 Jan 2026 16:30:27 +0100 Subject: Add resize handler --- nandgame/cpp/simpc_ui.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index cc44bc9..1c749b3 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -7,12 +7,18 @@ #include +static bool resized = false; + #define PRINT_ME(y, x, ...) \ { mvprintw(y, x, __VA_ARGS__); } #define PRINT_ME_W(w, y, x, ...) \ { mvwprintw(w, y, x, __VA_ARGS__); } #define PRINT_NEXT(dly) \ { \ + if (resized) { \ + /* ????*/ \ + resized = 0; \ + } \ refresh(); \ wrefresh(status_top); \ wrefresh(clock_regs); \ @@ -229,6 +235,10 @@ static void handle_key() { case 's': block_here = false; break; + + case KEY_RESIZE: + resized = 1; + break; } } while (block_here); } -- cgit v1.2.3