summaryrefslogtreecommitdiff
path: root/apps/recorder/bounce.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/bounce.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/bounce.c')
-rw-r--r--apps/recorder/bounce.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c
index 6b500964f0..cb080a0d00 100644
--- a/apps/recorder/bounce.c
+++ b/apps/recorder/bounce.c
@@ -24,6 +24,7 @@
24#include "lcd.h" 24#include "lcd.h"
25#include "button.h" 25#include "button.h"
26#include "kernel.h" 26#include "kernel.h"
27#include "menu.h"
27 28
28#ifdef SIMULATOR 29#ifdef SIMULATOR
29#include <stdio.h> 30#include <stdio.h>
@@ -83,7 +84,7 @@ static void loopit(void)
83} 84}
84 85
85 86
86void bounce(void) 87Menu bounce(void)
87{ 88{
88 int w, h; 89 int w, h;
89 char *off = "[Off] to stop"; 90 char *off = "[Off] to stop";
@@ -126,6 +127,8 @@ void bounce(void)
126 lcd_update(); 127 lcd_update();
127 sleep(HZ); 128 sleep(HZ);
128 loopit(); 129 loopit();
130
131 return MENU_OK;
129} 132}
130 133
131#endif 134#endif