summaryrefslogtreecommitdiff
path: root/apps/recorder/sokoban.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-23 12:32:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-23 12:32:52 +0000
commitb285076925fed906d95573b64115cb3f6bdafe65 (patch)
tree6d959f585fc210acf39e667991038d21aef48d13 /apps/recorder/sokoban.c
parentad4a92eb87eb98ff316f54f06650f1c5e1dcd7ca (diff)
downloadrockbox-b285076925fed906d95573b64115cb3f6bdafe65.tar.gz
rockbox-b285076925fed906d95573b64115cb3f6bdafe65.zip
Remade the menu system slightly. All functions invoked from menus now use
the Menu typedef as return type, and *ALL* menus that intercept USB connect can then return MENU_REFRESH_DIR so that the parent (any parent really) that do file or dir-accesses knows that and can do the refresh. If no refresh is needed by the parent, MENU_OK is returned. Somewhat biggish commit this close to 1.3, but we need to sort out this refresh-after-usb-connected business. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1948 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/sokoban.c')
-rw-r--r--apps/recorder/sokoban.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/recorder/sokoban.c b/apps/recorder/sokoban.c
index 2795d745e6..6ce19e6a41 100644
--- a/apps/recorder/sokoban.c
+++ b/apps/recorder/sokoban.c
@@ -23,6 +23,7 @@
23#include "lcd.h" 23#include "lcd.h"
24#include "button.h" 24#include "button.h"
25#include "kernel.h" 25#include "kernel.h"
26#include "menu.h"
26 27
27#ifdef SIMULATOR 28#ifdef SIMULATOR
28#include <stdio.h> 29#include <stdio.h>
@@ -1334,7 +1335,7 @@ void sokoban_loop(void) {
1334} 1335}
1335 1336
1336 1337
1337void sokoban(void) 1338Menu sokoban(void)
1338{ 1339{
1339 int w, h; 1340 int w, h;
1340 int len = strlen(SOKOBAN_TITLE); 1341 int len = strlen(SOKOBAN_TITLE);
@@ -1371,4 +1372,6 @@ void sokoban(void)
1371 sleep(HZ*2); 1372 sleep(HZ*2);
1372 lcd_clear_display(); 1373 lcd_clear_display();
1373 sokoban_loop(); 1374 sokoban_loop();
1375
1376 return MENU_OK;
1374} 1377}