From d58e3584772189715f54b4035cd13eac4270058e Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sat, 18 Jul 2009 04:38:33 +0000 Subject: Clix: Add support for screen widths larger than 480 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21947 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/clix.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 78bfdb8fdf..bfe33b90de 100644 --- a/apps/plugins/clix.c +++ b/apps/plugins/clix.c @@ -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) -- cgit v1.2.3