summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/blackjack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index f46d378..a2acfee 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -602,7 +602,8 @@ static void draw_card(struct card temp_card, bool shown,
unsigned int x, unsigned int y) {
if(shown)
rb->lcd_bitmap_part(card_deck, CARD_WIDTH*temp_card.num,
- CARD_HEIGHT*temp_card.suit, BMPWIDTH_card_deck,
+ CARD_HEIGHT*temp_card.suit,
+ STRIDE(BMPWIDTH_card_deck, BMPHEIGHT_card_deck),
x+1, y+1, CARD_WIDTH, CARD_HEIGHT);
else
rb->lcd_bitmap(card_back, x+1, y+1,CARD_WIDTH, CARD_HEIGHT);