summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/menu.c b/apps/menu.c
index a863925eca..b8c652c04a 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -38,6 +38,16 @@ struct menu {
38#define MENU_LINES 2 38#define MENU_LINES 2
39#endif 39#endif
40 40
41#ifdef HAVE_LCD_BITMAP
42#define CURSOR_CHAR "-"
43#else
44#ifdef HAVE_NEW_CHARCELL_LCD
45#define CURSOR_CHAR "\x7e"
46#else
47#define CURSOR_CHAR "\x89"
48#endif
49#endif
50
41static struct menu menus[MAX_MENUS]; 51static struct menu menus[MAX_MENUS];
42static bool inuse[MAX_MENUS] = { false }; 52static bool inuse[MAX_MENUS] = { false };
43 53
@@ -57,7 +67,7 @@ static void menu_draw(int m)
57 } 67 }
58 68
59 /* place the cursor */ 69 /* place the cursor */
60 lcd_puts(0, menus[m].cursor - menus[m].top, "-"); 70 lcd_puts(0, menus[m].cursor - menus[m].top, CURSOR_CHAR);
61 71
62 lcd_update(); 72 lcd_update();
63} 73}
@@ -85,7 +95,7 @@ static void put_cursor(int m, int target)
85 } 95 }
86 96
87 if (do_update) { 97 if (do_update) {
88 lcd_puts(0, menus[m].cursor - menus[m].top, "-"); 98 lcd_puts(0, menus[m].cursor - menus[m].top, CURSOR_CHAR);
89 lcd_update(); 99 lcd_update();
90 } 100 }
91 101