diff options
| author | uvok | 2026-01-11 12:01:46 +0100 |
|---|---|---|
| committer | uvok | 2026-01-11 12:01:46 +0100 |
| commit | f0da85e50f3e922609c495900e8e82a017cd78d5 (patch) | |
| tree | f63ce95b95aa88dd2a0bab74933127dc7858b287 | |
| parent | 6eca57cc570a94e27aab45084fa9c0d915a8b676 (diff) | |
ui: Fix x/y
| -rw-r--r-- | nandgame/cpp/simpc_ui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <ncurses.h> #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"); \ } |
