diff options
| -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"); \ } |
