summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2002-05-03 06:11:39 +0000
committerRobert Hak <adiamas@rockbox.org>2002-05-03 06:11:39 +0000
commit0e747f18bc6b6a35771c13abc75b01363f19786e (patch)
tree8b503129e4ba2a77702614fa647f91cd17539b5a /uisimulator
parent735095751699a8594e2fc0e9fc37cf7d25fe3830 (diff)
Removed unused menu options
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@398 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/app.c13
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);
#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);