summaryrefslogtreecommitdiff
path: root/uisimulator/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/app.c')
-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);
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
42int menu_top = 0; 41int menu_top = 0;
43int menu_bottom = MAX_LINE; 42int menu_bottom = MAX_LINE;
@@ -54,9 +53,6 @@ void add_menu_item(int location, char *string)
54 53
55void menu_init(void) 54void 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 */
68int put_cursor(int current, int target) 69int 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);