diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-10 23:55:24 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-10 23:55:24 +0000 |
commit | 196e4ed5516cb0aa56301a6ebe58d01cc8b2f4d1 (patch) | |
tree | a7baa6d1108f5e65ac775dd9395f4a7eeffb1130 /apps/plugins/minesweeper.c | |
parent | e9aab365cb4ea1159a0f3735367f69c276d4a086 (diff) | |
download | rockbox-196e4ed5516cb0aa56301a6ebe58d01cc8b2f4d1.tar.gz rockbox-196e4ed5516cb0aa56301a6ebe58d01cc8b2f4d1.zip |
iRiver: Working buttons, better support for large fonts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/minesweeper.c')
-rw-r--r-- | apps/plugins/minesweeper.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index fb997ac819..c8d2c01a0d 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c | |||
@@ -59,12 +59,10 @@ use F3 to see how many mines are left (supposing all your flags are correct) | |||
59 | 59 | ||
60 | #elif CONFIG_KEYPAD == IRIVER_H100_PAD | 60 | #elif CONFIG_KEYPAD == IRIVER_H100_PAD |
61 | #define MINESWP_QUIT BUTTON_OFF | 61 | #define MINESWP_QUIT BUTTON_OFF |
62 | #define MINESWP_START BUTTON_ON | 62 | #define MINESWP_START BUTTON_SELECT |
63 | #define MINESWP_TOGGLE_PRE BUTTON_MODE | 63 | #define MINESWP_TOGGLE BUTTON_SELECT |
64 | 64 | #define MINESWP_DISCOVER BUTTON_ON | |
65 | #define MINESWP_TOGGLE (BUTTON_MODE | BUTTON_REL) | 65 | #define MINESWP_INFO BUTTON_MODE |
66 | #define MINESWP_DISCOVER (BUTTON_MODE | BUTTON_REPEAT) | ||
67 | #define MINESWP_INFO (BUTTON_MODE | BUTTON_OFF) | ||
68 | 66 | ||
69 | #endif | 67 | #endif |
70 | 68 | ||
@@ -305,15 +303,17 @@ int minesweeper(void) | |||
305 | while(true){ | 303 | while(true){ |
306 | rb->lcd_clear_display(); | 304 | rb->lcd_clear_display(); |
307 | 305 | ||
308 | rb->lcd_putsxy(1,1,"Mine Sweeper"); | 306 | rb->lcd_puts(0,0,"Mine Sweeper"); |
309 | 307 | ||
310 | rb->snprintf(str, 20, "%d%% mines", p); | 308 | rb->snprintf(str, 20, "%d%% mines", p); |
311 | rb->lcd_putsxy(1,19,str); | 309 | rb->lcd_puts(0,1,str); |
312 | rb->lcd_putsxy(1,28,"down / up"); | 310 | rb->lcd_puts(0,2,"down / up"); |
313 | #if CONFIG_KEYPAD == RECORDER_PAD | 311 | #if CONFIG_KEYPAD == RECORDER_PAD |
314 | rb->lcd_putsxy(1,44,"ON to start"); | 312 | rb->lcd_puts(0,4,"ON to start"); |
315 | #elif CONFIG_KEYPAD == ONDIO_PAD | 313 | #elif CONFIG_KEYPAD == ONDIO_PAD |
316 | rb->lcd_putsxy(1,44,"MODE to start"); | 314 | rb->lcd_puts(0,4,"MODE to start"); |
315 | #elif CONFIG_KEYPAD == IRIVER_H100_PAD | ||
316 | rb->lcd_puts(0,4,"SELECT to start"); | ||
317 | #endif | 317 | #endif |
318 | 318 | ||
319 | rb->lcd_update(); | 319 | rb->lcd_update(); |