From 3e13fcddc6af9ead51f35d49f2d63c6bb8c7c6aa Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 30 Jan 2012 00:51:43 +0100 Subject: [PATCH] clix: Add cells for 320x480. Enable for touchscreen RaaA. Change-Id: Ic002cddb0ffdaa239d21c5b6ba016ab4cec32400 --- apps/plugins/SOURCES.app_build | 1 + apps/plugins/clix.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/apps/plugins/SOURCES.app_build b/apps/plugins/SOURCES.app_build index c4866f4ab3..990a7c1c86 100644 --- a/apps/plugins/SOURCES.app_build +++ b/apps/plugins/SOURCES.app_build @@ -4,6 +4,7 @@ #else /* plugins common to all models */ chopper.c +clix.c credits.c properties.c random_folder_advance_config.c diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 06fe0d84e0..4d6218f3fb 100644 --- a/apps/plugins/clix.c +++ b/apps/plugins/clix.c @@ -162,9 +162,14 @@ #elif (CONFIG_KEYPAD == ONDAVX747_PAD) #define CLIX_BUTTON_QUIT BUTTON_POWER #define CLIX_BUTTON_CLICK BUTTON_MENU + #elif (CONFIG_KEYPAD == ONDAVX777_PAD) #define CLIX_BUTTON_QUIT BUTTON_POWER +#elif (CONFIG_KEYPAD == ANDROID_PAD) \ + || (CONFIG_KEYPAD == SDL_PAD) +#define CLIX_BUTTON_QUIT BUTTON_BACK + #elif (CONFIG_KEYPAD == MROBE500_PAD) #define CLIX_BUTTON_QUIT BUTTON_POWER @@ -227,6 +232,9 @@ struct highscore highscores[NUM_SCORES]; #define CELL_SIZE (LCD_WIDTH/BOARD_WIDTH) #endif +#elif (LCD_WIDTH >= 312 && LCD_HEIGHT >= 468) +#define CELL_SIZE 24 + #elif (LCD_WIDTH >= 306 && LCD_HEIGHT>= 204) #define CELL_SIZE 16