summaryrefslogtreecommitdiff
path: root/uisimulator/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/menu.c')
-rw-r--r--uisimulator/menu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/uisimulator/menu.c b/uisimulator/menu.c
index 0dc1599fe9..1619b33676 100644
--- a/uisimulator/menu.c
+++ b/uisimulator/menu.c
@@ -86,7 +86,7 @@ void move_cursor_down(void)
86 86
87void redraw_cursor(void) 87void redraw_cursor(void)
88{ 88{
89 lcd_puts(0, cursor*menu_line_height, "-", 0); 89 lcd_putsxy(0, cursor*menu_line_height, "-", 0);
90} 90}
91 91
92/* 92/*
@@ -96,9 +96,9 @@ void redraw_cursor(void)
96 */ 96 */
97void put_cursor(int target) 97void put_cursor(int target)
98{ 98{
99 lcd_puts(0, cursor*menu_line_height, " ", 0); 99 lcd_putsxy(0, cursor*menu_line_height, " ",0);
100 cursor = target; 100 cursor = target;
101 lcd_puts(0, cursor*menu_line_height, "-", 0); 101 lcd_putsxy(0, cursor*menu_line_height, "-",0);
102} 102}
103 103
104/* We call the function pointer related to the current cursor position */ 104/* We call the function pointer related to the current cursor position */
@@ -110,8 +110,8 @@ void execute_menu_item(void)
110 110
111void add_menu_item(int location, char *string) 111void add_menu_item(int location, char *string)
112{ 112{
113 lcd_puts(MENU_ITEM_Y_LOC, MENU_LINE_HEIGHT*location, 113 lcd_putsxy(MENU_ITEM_Y_LOC, MENU_LINE_HEIGHT*location, string,
114 string, MENU_ITEM_FONT); 114 MENU_ITEM_FONT);
115 if (location < menu_top) 115 if (location < menu_top)
116 menu_top = location; 116 menu_top = location;
117 if (location > menu_bottom) 117 if (location > menu_bottom)
@@ -130,7 +130,7 @@ void menu_init(void)
130 for (i = i; i < Last_Id; i++) 130 for (i = i; i < Last_Id; i++)
131 add_menu_item(items[i].menu_id, (char *) items[i].menu_desc); 131 add_menu_item(items[i].menu_id, (char *) items[i].menu_desc);
132 132
133 lcd_puts(8, 38, "Rockbox!", 2); 133 lcd_putsxy(8, 38, "Rockbox!",2);
134 redraw_cursor(); 134 redraw_cursor();
135} 135}
136 136