1
0
Fork 0
forked from len0rd/rockbox

Clix: Add support for screen widths larger than 480

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21947 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-07-18 04:38:33 +00:00
parent 86b1f4e287
commit d58e358477

View file

@ -170,7 +170,14 @@ struct highscore highest[NUM_SCORES];
#define BOARD_HEIGHT 18
#endif
#if (LCD_WIDTH >= 306 && LCD_HEIGHT>= 204)
#if (LCD_WIDTH>=480)
#if (LCD_WIDTH/BOARD_WIDTH) > (LCD_HEIGHT/BOARD_HEIGHT)
#define CELL_SIZE (LCD_HEIGHT/BOARD_HEIGHT)
#else
#define CELL_SIZE (LCD_WIDTH/BOARD_WIDTH)
#endif
#elif (LCD_WIDTH >= 306 && LCD_HEIGHT>= 204)
#define CELL_SIZE 16
#elif (LCD_WIDTH >= 270 && LCD_HEIGHT>= 180)