summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index e7b7657..c9409df 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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)