summaryrefslogtreecommitdiff
path: root/apps/plugins/snake2.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-07-21 04:22:19 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-07-21 04:22:19 +0000
commit83cf0df5634eff56559af3347e4959cafe5719c8 (patch)
treefb5dc285921637bce80d60561444ea713ae7d08e /apps/plugins/snake2.c
parent70deae01ffd67ec350e7f36bccfd0cf53265b5ef (diff)
downloadrockbox-83cf0df5634eff56559af3347e4959cafe5719c8.zip
rockbox-83cf0df5634eff56559af3347e4959cafe5719c8.tar.gz
rockbox-83cf0df5634eff56559af3347e4959cafe5719c8.tar.bz2
rockbox-83cf0df5634eff56559af3347e4959cafe5719c8.tar.xz
Snake2: Add support for 640x480 screens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/snake2.c')
-rw-r--r--apps/plugins/snake2.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index 67678f5..771e385 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -47,8 +47,19 @@ PLUGIN_HEADER
#define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1
#endif
-
-#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240)
+#if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480)
+ #define MULTIPLIER 20 /*Modifier for porting on other screens*/
+ #define MODIFIER_1 20
+ #define MODIFIER_2 16
+ #define CENTER_X 40
+ #define CENTER_Y 110
+ #define TOP_X1 68 /* x-coord of the upperleft item (game type) */
+ #define TOP_X2 562 /* x-coord of the upperright item (maze type) */
+ #define TOP_X3 84 /* x-coord of the lowerleft item (speed) */
+ #define TOP_X4 548 /* x-coord of the lowerright item (hi-score) */
+ #define TOP_Y1 8 /* y-coord of the top row of items */
+ #define TOP_Y2 50 /* y-coord of the bottom row of items */
+#elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240)
#define MULTIPLIER 10 /*Modifier for porting on other screens*/
#define MODIFIER_1 10
#define MODIFIER_2 8