diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-05 10:30:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-05 10:30:41 +0000 |
commit | df700fd007c1eb894677b3c856019e40157a3689 (patch) | |
tree | b81da4039e6a082632e40c7353d7374de917f011 /uisimulator | |
parent | 1cc447afe69299e13bcf228aaea2b9943fc3b0aa (diff) |
use the menu function pointers properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@429 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/app.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/uisimulator/app.c b/uisimulator/app.c index 790a9b7d88..b6fc838ef2 100644 --- a/uisimulator/app.c +++ b/uisimulator/app.c @@ -125,22 +125,10 @@ void app_main(void) case BUTTON_PLAY: /* Erase current display state */ lcd_clear_display(); - - switch(cursor) { - case Tetris: - tetris(); - break; - case Browse: - printf("at browse\n"); - browse_root(); - break; - case Screen_Saver: - screensaver(); - break; - default: - continue; - } + /* call the proper function for this line */ + items[cursor].function(); + /* Return to previous display state */ lcd_clear_display(); menu_init(); |