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:
parent
1cc447afe6
commit
df700fd007
1 changed files with 3 additions and 15 deletions
|
|
@ -125,22 +125,10 @@ void app_main(void)
|
||||||
case BUTTON_PLAY:
|
case BUTTON_PLAY:
|
||||||
/* Erase current display state */
|
/* Erase current display state */
|
||||||
lcd_clear_display();
|
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 */
|
/* Return to previous display state */
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
menu_init();
|
menu_init();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue