From 03cb2b83ae17d9118ddee69908389fb4cd0484a6 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sat, 18 Jul 2009 13:51:07 +0000 Subject: 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 --- apps/plugins/jewels.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c index e3dfcc3866..efec63f2cc 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 -- cgit v1.2.3