From 9314a68db6d992fcc220e9bd5d8a7278199e2563 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Fri, 31 May 2002 09:04:51 +0000 Subject: Replaced - cursor with more suitable char for player git-svn-id: svn://svn.rockbox.org/rockbox/trunk@848 a1c6a512-1295-4272-9138-f99709370657 --- apps/menu.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'apps/menu.c') 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 { #define MENU_LINES 2 #endif +#ifdef HAVE_LCD_BITMAP +#define CURSOR_CHAR "-" +#else +#ifdef HAVE_NEW_CHARCELL_LCD +#define CURSOR_CHAR "\x7e" +#else +#define CURSOR_CHAR "\x89" +#endif +#endif + static struct menu menus[MAX_MENUS]; static bool inuse[MAX_MENUS] = { false }; @@ -57,7 +67,7 @@ static void menu_draw(int m) } /* place the cursor */ - lcd_puts(0, menus[m].cursor - menus[m].top, "-"); + lcd_puts(0, menus[m].cursor - menus[m].top, CURSOR_CHAR); lcd_update(); } @@ -85,7 +95,7 @@ static void put_cursor(int m, int target) } if (do_update) { - lcd_puts(0, menus[m].cursor - menus[m].top, "-"); + lcd_puts(0, menus[m].cursor - menus[m].top, CURSOR_CHAR); lcd_update(); } -- cgit v1.2.3