summaryrefslogtreecommitdiff
path: root/nandgame/cpp/simpc_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nandgame/cpp/simpc_ui.cpp')
-rw-r--r--nandgame/cpp/simpc_ui.cpp10
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"); \
}