diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-23 12:32:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-23 12:32:52 +0000 |
commit | b285076925fed906d95573b64115cb3f6bdafe65 (patch) | |
tree | 6d959f585fc210acf39e667991038d21aef48d13 /apps/recorder/blank.c | |
parent | ad4a92eb87eb98ff316f54f06650f1c5e1dcd7ca (diff) | |
download | rockbox-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/blank.c')
-rw-r--r-- | apps/recorder/blank.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/recorder/blank.c b/apps/recorder/blank.c index 835420f63b..2c59ec66bc 100644 --- a/apps/recorder/blank.c +++ b/apps/recorder/blank.c @@ -24,6 +24,7 @@ #include "lcd.h" #include "button.h" #include "kernel.h" +#include "menu.h" #ifdef SIMULATOR #include <stdio.h> @@ -33,7 +34,7 @@ #define SS_TITLE "Blank" #define SS_TITLE_FONT 2 -void blank(void) +Menu blank(void) { int w, h; char *off = "[Off] to stop"; @@ -76,15 +77,16 @@ void blank(void) lcd_update(); sleep(HZ); - lcd_clear_display(); + lcd_clear_display(); lcd_update(); - while(1) { - if(button_get(false)) - return; + while(1) { + if(button_get(false)) + return MENU_OK; sleep(HZ/10); - } - + } + + return MENU_OK; } #endif |