diff options
author | Dave Chapman <dave@dchapman.com> | 2006-03-20 22:07:35 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-03-20 22:07:35 +0000 |
commit | 7e7423373e1913ff48744adc6236634459610cb6 (patch) | |
tree | 4b922e1743ca0adabf943349ba26e6ff38dc820d /apps/plugins | |
parent | c688e4da9d6fcfebc49e947090bc4ae37ea65ee3 (diff) |
Add cardback bitmap for colour LCDs smaller than 220x176.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/bitmaps/native/SOURCES | 4 | ||||
-rw-r--r-- | apps/plugins/bitmaps/native/solitaire_cardback.176x132x16.bmp | bin | 0 -> 1398 bytes | |||
-rw-r--r-- | apps/plugins/solitaire.c | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index b267fc9dfa..1536b3768b 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES @@ -61,7 +61,11 @@ jewels.320x240x16.bmp /* Solitaire */ #ifdef HAVE_LCD_COLOR +#if (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176) solitaire_cardback.220x176x16.bmp +#else +solitaire_cardback.176x132x16.bmp +#endif #endif /* Sudoku */ diff --git a/apps/plugins/bitmaps/native/solitaire_cardback.176x132x16.bmp b/apps/plugins/bitmaps/native/solitaire_cardback.176x132x16.bmp Binary files differnew file mode 100644 index 0000000000..a3377149b5 --- /dev/null +++ b/apps/plugins/bitmaps/native/solitaire_cardback.176x132x16.bmp diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index f8b7f94717..45d56950ec 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -221,8 +221,13 @@ static const unsigned colors[4] = { #define BMPWIDTH_c 8 #ifdef HAVE_LCD_COLOR +#if (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176) #define BMPHEIGHT_CARDBACK 33 #define BMPWIDTH_CARDBACK 26 +#else +#define BMPHEIGHT_CARDBACK 24 +#define BMPWIDTH_CARDBACK 18 +#endif extern const fb_data solitaire_cardback[]; #endif |