diff options
| -rw-r--r-- | src/ui.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -125,6 +125,13 @@ static void draw_card(WINDOW *w, const uint8_t row, const uint8_t col, const boo static void draw_cardstack(WINDOW *w, const uint8_t row, const uint8_t col, const bool highlight, const cardstack cs) { + // Clear old card stack first + mvwhline(w, row, col, ' ', 15); + mvwhline(w, row+1, col, ' ', 15); + mvwhline(w, row+2, col, ' ', 15); + mvwhline(w, row+3, col, ' ', 15); + mvwhline(w, row+4, col, ' ', 15); + for (uint8_t i = 0; i < MAX_CARDSTACK_SIZE; i++) { if (cs[i] != 0) |
