diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-15 12:25:57 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-15 12:25:57 +0000 |
commit | 0a4b247080dd132e847071adbc006ad9de2ca608 (patch) | |
tree | 5eb04ea6eefba517233d9c649ce5f6c56e6d16be /apps/menu.c | |
parent | 6e0a75c596a6c4ec5ec2820e1873c8527aec5007 (diff) | |
download | rockbox-0a4b247080dd132e847071adbc006ad9de2ca608.tar.gz rockbox-0a4b247080dd132e847071adbc006ad9de2ca608.zip |
The player firmware now autodetects the LCD type. No need for two player versions anymore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2658 a1c6a512-1295-4272-9138-f99709370657
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 @@ ****************************************************************************/ #include <stdbool.h> +#include "hwcompat.h" #include "lcd.h" #include "font.h" #include "backlight.h" @@ -80,11 +81,8 @@ struct menu { #endif /* HAVE_LCD_BITMAP */ -#ifdef HAVE_NEW_CHARCELL_LCD -#define CURSOR_CHAR 0x7e -#else -#define CURSOR_CHAR 0x89 -#endif +#define NEW_CURSOR_CHAR 0x7e +#define OLD_CURSOR_CHAR 0x89 static struct menu menus[MAX_MENUS]; static bool inuse[MAX_MENUS] = { false }; @@ -108,7 +106,7 @@ void put_cursorxy(int x, int y, bool on) lcd_bitmap ( bitmap_icons_6x8[Cursor], xpos, ypos, 4, 8, true); #else - lcd_putc(x, y, CURSOR_CHAR); + lcd_putc(x, y, has_new_lcd()?NEW_CURSOR_CHAR:OLD_CURSOR_CHAR); #endif } else { |