mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
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
This commit is contained in:
parent
36c32ad328
commit
03cb2b83ae
1 changed files with 5 additions and 12 deletions
|
|
@ -273,25 +273,18 @@ CONFIG_KEYPAD == MROBE500_PAD
|
||||||
#endif
|
#endif
|
||||||
#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_WIDTH BMPWIDTH_jewels
|
||||||
#define TILE_HEIGHT (BMPHEIGHT_jewels/23)
|
#define TILE_HEIGHT (BMPHEIGHT_jewels/23)
|
||||||
|
|
||||||
|
#if LCD_HEIGHT < LCD_WIDTH
|
||||||
/* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */
|
/* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */
|
||||||
#define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT)
|
#define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT)
|
||||||
|
#else
|
||||||
#if !defined(NUM_SCORES)
|
#define YOFS 0
|
||||||
#define NUM_SCORES LCD_HEIGHT/10
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define NUM_SCORES 5
|
||||||
|
|
||||||
/* swap directions */
|
/* swap directions */
|
||||||
#define SWAP_UP 0
|
#define SWAP_UP 0
|
||||||
#define SWAP_RIGHT 1
|
#define SWAP_RIGHT 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue