diff options
Diffstat (limited to 'dartbot.c')
-rw-r--r-- | dartbot.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -44,7 +44,8 @@ M(20, 202, 0) \ M(0, 196, 0) \ M(DARTS, 235, 0) \ - M(VISIT, 244, 0) + M(VISIT, 244, 0) \ + M(PROMPT, 0, 7) #define GEN_COLOUR_ENUM(X, FG, BG) C_ ## X, #define GEN_COLOUR_INIT_PAIR(X, FG, BG) init_pair(C_ ## X, FG, BG); @@ -388,8 +389,9 @@ void user_visit(WINDOW *w, struct leg *l) { struct visit *v = l->visits + l->n_visits++; - char prompt[] = "Enter points: "; - WINDOW *iw = subwin(w, 1, COLS-4, LINES-2, 2); + char prompt[] = " Enter points: "; + WINDOW *iw = subwin(w, 1, COLS-2, LINES-2, 1); + wbkgd(iw, COLOR_PAIR(C_PROMPT)); waddstr(iw, prompt); touchwin(w); wrefresh(iw); |