diff options
Diffstat (limited to 'apps/menu.c')
-rw-r--r-- | apps/menu.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/menu.c b/apps/menu.c index eee1052d65..7051850a49 100644 --- a/apps/menu.c +++ b/apps/menu.c | |||
@@ -18,6 +18,7 @@ | |||
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include <stdbool.h> | 19 | #include <stdbool.h> |
20 | 20 | ||
21 | #include "hwcompat.h" | ||
21 | #include "lcd.h" | 22 | #include "lcd.h" |
22 | #include "font.h" | 23 | #include "font.h" |
23 | #include "backlight.h" | 24 | #include "backlight.h" |
@@ -80,11 +81,8 @@ struct menu { | |||
80 | 81 | ||
81 | #endif /* HAVE_LCD_BITMAP */ | 82 | #endif /* HAVE_LCD_BITMAP */ |
82 | 83 | ||
83 | #ifdef HAVE_NEW_CHARCELL_LCD | 84 | #define NEW_CURSOR_CHAR 0x7e |
84 | #define CURSOR_CHAR 0x7e | 85 | #define OLD_CURSOR_CHAR 0x89 |
85 | #else | ||
86 | #define CURSOR_CHAR 0x89 | ||
87 | #endif | ||
88 | 86 | ||
89 | static struct menu menus[MAX_MENUS]; | 87 | static struct menu menus[MAX_MENUS]; |
90 | static bool inuse[MAX_MENUS] = { false }; | 88 | static bool inuse[MAX_MENUS] = { false }; |
@@ -108,7 +106,7 @@ void put_cursorxy(int x, int y, bool on) | |||
108 | lcd_bitmap ( bitmap_icons_6x8[Cursor], | 106 | lcd_bitmap ( bitmap_icons_6x8[Cursor], |
109 | xpos, ypos, 4, 8, true); | 107 | xpos, ypos, 4, 8, true); |
110 | #else | 108 | #else |
111 | lcd_putc(x, y, CURSOR_CHAR); | 109 | lcd_putc(x, y, has_new_lcd()?NEW_CURSOR_CHAR:OLD_CURSOR_CHAR); |
112 | #endif | 110 | #endif |
113 | } | 111 | } |
114 | else { | 112 | else { |