From df700fd007c1eb894677b3c856019e40157a3689 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2002 10:30:41 +0000 Subject: use the menu function pointers properly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@429 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/app.c | 18 +++--------------- 1 file 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(); -- cgit v1.2.3