1
0
Fork 0
forked from len0rd/rockbox

use the menu function pointers properly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@429 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-05 10:30:41 +00:00
parent 1cc447afe6
commit df700fd007

View file

@ -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();