From f0da85e50f3e922609c495900e8e82a017cd78d5 Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 11 Jan 2026 12:01:46 +0100 Subject: ui: Fix x/y --- nandgame/cpp/simpc_ui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nandgame/cpp/simpc_ui.cpp') diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index eead4b5..dc327d3 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -4,14 +4,14 @@ #include "disas.h" #define NCUR_OFFSET 3 +#define NCUR_X 5 #if NCUR #include #define NCUR_DELAY_MS 100 -#define NCUR_X 5 -#define PRINT_ME(x, y, ...) \ - { mvprintw(x, y, __VA_ARGS__); } +#define PRINT_ME(y, x, ...) \ + { mvprintw(y, x, __VA_ARGS__); } #define PRINT_NEXT() \ { \ refresh(); \ @@ -20,9 +20,9 @@ #else -#define PRINT_ME(x, y, ...) \ +#define PRINT_ME(y, x, ...) \ { \ - printf("%*s", x, ""); \ + printf("%*c", x, ' '); \ printf(__VA_ARGS__); \ printf("\n"); \ } -- cgit v1.2.3