diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-14 04:45:04 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-14 04:45:04 +0100 |
| commit | a59958312ffb1e2cb368b5acb57b3376276c39ea (patch) | |
| tree | dd59ef9d918a739e23607decca7e122cba073af4 /src | |
| parent | 9c855d16f1a737ddd9bde72e0fc51f4fd0a1e042 (diff) | |
draw_cardstack() clears visible remains of old card stacks before drawing the new one.
Diffstat (limited to 'src')
| -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) |
