1
0
Fork 0
forked from len0rd/rockbox

Removed unused menu options

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@398 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Hak 2002-05-03 06:11:39 +00:00
parent 7350957516
commit 0e747f18bc

View file

@ -34,10 +34,9 @@ extern void tetris(void);
#define ITEM_TETRIS 0
#define ITEM_SCREENSAVER 1
#define ITEM_BROWSE 2
#define ITEM_ROCKABOX 3
/* the last index with info, starting on 0 */
#define MAX_LINE 3
#define MAX_LINE ITEM_BROWSE
int menu_top = 0;
int menu_bottom = MAX_LINE;
@ -54,9 +53,6 @@ void add_menu_item(int location, char *string)
void menu_init(void)
{
/* x, y, string, font */
/* lcd_puts(6, 0, "Rockabox", 0);*/
add_menu_item(ITEM_ROCKABOX, "Rockabox");
add_menu_item(ITEM_SCREENSAVER, "Screen Saver");
add_menu_item(ITEM_BROWSE, "Browse");
add_menu_item(ITEM_TETRIS, "Tetris");
@ -64,7 +60,12 @@ void menu_init(void)
lcd_puts(8, 38, "Rockbox!", 2);
}
/* Move the cursor to a particular id */
/*
* Move the cursor to a particular id,
* current: where it is now
* target: where you want it to be
* Returns: the new current location
*/
int put_cursor(int current, int target)
{
lcd_puts(0, current*MENU_LINE_HEIGHT, " ", 0);