diff options
Diffstat (limited to 'apps/plugins/solitaire.c')
-rw-r--r-- | apps/plugins/solitaire.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 993ba47ec6..0b7d8ac3c7 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -482,7 +482,12 @@ PLUGIN_HEADER | |||
482 | #define CARD_WIDTH (BMPWIDTH_card_back+2) | 482 | #define CARD_WIDTH (BMPWIDTH_card_back+2) |
483 | #define CARD_HEIGHT (BMPHEIGHT_card_back+2) | 483 | #define CARD_HEIGHT (BMPHEIGHT_card_back+2) |
484 | 484 | ||
485 | #if LCD_WIDTH >= 320 | 485 | #if LCD_WIDTH >= 640 |
486 | # define MARGIN 4 | ||
487 | # define LARGE_CARD | ||
488 | # define SYMBOL_HEIGHT 24 | ||
489 | |||
490 | #elif LCD_WIDTH >= 320 | ||
486 | # define MARGIN 4 | 491 | # define MARGIN 4 |
487 | # define LARGE_CARD | 492 | # define LARGE_CARD |
488 | # define SYMBOL_HEIGHT 12 | 493 | # define SYMBOL_HEIGHT 12 |
@@ -615,7 +620,8 @@ static void draw_card( card_t *card, int x, int y, | |||
615 | if( card->known ) | 620 | if( card->known ) |
616 | { | 621 | { |
617 | rb->lcd_bitmap_part( card_deck, CARD_GFX_WIDTH * card->num, | 622 | rb->lcd_bitmap_part( card_deck, CARD_GFX_WIDTH * card->num, |
618 | CARD_GFX_HEIGHT * card->suit, BMPWIDTH_card_deck, | 623 | CARD_GFX_HEIGHT * card->suit, |
624 | STRIDE(BMPWIDTH_card_deck, BMPHEIGHT_card_deck), | ||
619 | x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT ); | 625 | x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT ); |
620 | } | 626 | } |
621 | else | 627 | else |
@@ -630,8 +636,9 @@ static void draw_card( card_t *card, int x, int y, | |||
630 | static void draw_empty_stack( int s, int x, int y, bool cursor ) | 636 | static void draw_empty_stack( int s, int x, int y, bool cursor ) |
631 | { | 637 | { |
632 | rb->lcd_bitmap_part( solitaire_suitsi, 0, | 638 | rb->lcd_bitmap_part( solitaire_suitsi, 0, |
633 | CARD_GFX_HEIGHT * s, BMPWIDTH_solitaire_suitsi, | 639 | CARD_GFX_HEIGHT * s, |
634 | x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT ); | 640 | STRIDE(BMPWIDTH_solitaire_suitsi, BMPHEIGHT_solitaire_suitsi), |
641 | x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT ); | ||
635 | 642 | ||
636 | draw_card_ext( x, y, false, cursor ); | 643 | draw_card_ext( x, y, false, cursor ); |
637 | } | 644 | } |