From 0e747f18bc6b6a35771c13abc75b01363f19786e Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Fri, 3 May 2002 06:11:39 +0000 Subject: Removed unused menu options git-svn-id: svn://svn.rockbox.org/rockbox/trunk@398 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/app.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/uisimulator/app.c b/uisimulator/app.c index 40370de375..44f396eae2 100644 --- a/uisimulator/app.c +++ b/uisimulator/app.c @@ -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); -- cgit v1.2.3