diff options
| author | Teruaki Kawashima <teru@rockbox.org> | 2009-07-18 13:51:07 +0000 |
|---|---|---|
| committer | Teruaki Kawashima <teru@rockbox.org> | 2009-07-18 13:51:07 +0000 |
| commit | 03cb2b83ae17d9118ddee69908389fb4cd0484a6 (patch) | |
| tree | ee77b0b139b58009603b2cf02cc11575882dbcfd /apps | |
| parent | 36c32ad328bf91078921f7364f1e5f062741db11 (diff) | |
| download | rockbox-03cb2b83ae17d9118ddee69908389fb4cd0484a6.zip rockbox-03cb2b83ae17d9118ddee69908389fb4cd0484a6.tar.gz rockbox-03cb2b83ae17d9118ddee69908389fb4cd0484a6.tar.bz2 rockbox-03cb2b83ae17d9118ddee69908389fb4cd0484a6.tar.xz | |
set YOFS to 0 for portrait LCDs.
set NUM_SCORES to 5 for all targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21959 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugins/jewels.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c index e3dfcc3..efec63f 100644 --- a/apps/plugins/jewels.c +++ b/apps/plugins/jewels.c @@ -273,25 +273,18 @@ CONFIG_KEYPAD == MROBE500_PAD #endif #endif -/* use 10x8 tiles (iFP 700) */ -#if (LCD_HEIGHT == 64) && (LCD_WIDTH == 128) -#define NUM_SCORES 5 - -/* use 10x8 tiles (Recorder, Ondio) */ -#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112) -#define NUM_SCORES 5 -#endif - #define TILE_WIDTH BMPWIDTH_jewels #define TILE_HEIGHT (BMPHEIGHT_jewels/23) +#if LCD_HEIGHT < LCD_WIDTH /* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */ #define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT) - -#if !defined(NUM_SCORES) -#define NUM_SCORES LCD_HEIGHT/10 +#else +#define YOFS 0 #endif +#define NUM_SCORES 5 + /* swap directions */ #define SWAP_UP 0 #define SWAP_RIGHT 1 |