summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-14 04:45:04 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-14 04:45:04 +0100
commita59958312ffb1e2cb368b5acb57b3376276c39ea (patch)
treedd59ef9d918a739e23607decca7e122cba073af4 /src
parent9c855d16f1a737ddd9bde72e0fc51f4fd0a1e042 (diff)
draw_cardstack() clears visible remains of old card stacks before drawing the new one.
Diffstat (limited to 'src')
-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)