diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-05-03 06:11:39 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-05-03 06:11:39 +0000 |
commit | 0e747f18bc6b6a35771c13abc75b01363f19786e (patch) | |
tree | 8b503129e4ba2a77702614fa647f91cd17539b5a /uisimulator/app.c | |
parent | 735095751699a8594e2fc0e9fc37cf7d25fe3830 (diff) | |
download | rockbox-0e747f18bc6b6a35771c13abc75b01363f19786e.tar.gz rockbox-0e747f18bc6b6a35771c13abc75b01363f19786e.zip |
Removed unused menu options
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@398 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/app.c')
-rw-r--r-- | uisimulator/app.c | 13 |
1 files 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); | |||
34 | #define ITEM_TETRIS 0 | 34 | #define ITEM_TETRIS 0 |
35 | #define ITEM_SCREENSAVER 1 | 35 | #define ITEM_SCREENSAVER 1 |
36 | #define ITEM_BROWSE 2 | 36 | #define ITEM_BROWSE 2 |
37 | #define ITEM_ROCKABOX 3 | ||
38 | 37 | ||
39 | /* the last index with info, starting on 0 */ | 38 | /* the last index with info, starting on 0 */ |
40 | #define MAX_LINE 3 | 39 | #define MAX_LINE ITEM_BROWSE |
41 | 40 | ||
42 | int menu_top = 0; | 41 | int menu_top = 0; |
43 | int menu_bottom = MAX_LINE; | 42 | int menu_bottom = MAX_LINE; |
@@ -54,9 +53,6 @@ void add_menu_item(int location, char *string) | |||
54 | 53 | ||
55 | void menu_init(void) | 54 | void menu_init(void) |
56 | { | 55 | { |
57 | /* x, y, string, font */ | ||
58 | /* lcd_puts(6, 0, "Rockabox", 0);*/ | ||
59 | add_menu_item(ITEM_ROCKABOX, "Rockabox"); | ||
60 | add_menu_item(ITEM_SCREENSAVER, "Screen Saver"); | 56 | add_menu_item(ITEM_SCREENSAVER, "Screen Saver"); |
61 | add_menu_item(ITEM_BROWSE, "Browse"); | 57 | add_menu_item(ITEM_BROWSE, "Browse"); |
62 | add_menu_item(ITEM_TETRIS, "Tetris"); | 58 | add_menu_item(ITEM_TETRIS, "Tetris"); |
@@ -64,7 +60,12 @@ void menu_init(void) | |||
64 | lcd_puts(8, 38, "Rockbox!", 2); | 60 | lcd_puts(8, 38, "Rockbox!", 2); |
65 | } | 61 | } |
66 | 62 | ||
67 | /* Move the cursor to a particular id */ | 63 | /* |
64 | * Move the cursor to a particular id, | ||
65 | * current: where it is now | ||
66 | * target: where you want it to be | ||
67 | * Returns: the new current location | ||
68 | */ | ||
68 | int put_cursor(int current, int target) | 69 | int put_cursor(int current, int target) |
69 | { | 70 | { |
70 | lcd_puts(0, current*MENU_LINE_HEIGHT, " ", 0); | 71 | lcd_puts(0, current*MENU_LINE_HEIGHT, " ", 0); |