summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-15 12:25:57 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-15 12:25:57 +0000
commit0a4b247080dd132e847071adbc006ad9de2ca608 (patch)
tree5eb04ea6eefba517233d9c649ce5f6c56e6d16be /apps
parent6e0a75c596a6c4ec5ec2820e1873c8527aec5007 (diff)
downloadrockbox-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')
-rw-r--r--apps/main_menu.c6
-rw-r--r--apps/menu.c10
-rw-r--r--apps/tree.c6
3 files changed, 9 insertions, 13 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index de51b57701..cf31e74961 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -16,7 +16,7 @@
16 * KIND, either express or implied. 16 * KIND, either express or implied.
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19 19#include "config.h"
20#include "options.h" 20#include "options.h"
21 21
22#include "menu.h" 22#include "menu.h"
@@ -107,9 +107,7 @@ int show_logo( void )
107#else 107#else
108 char *rockbox = " ROCKbox!"; 108 char *rockbox = " ROCKbox!";
109 lcd_clear_display(); 109 lcd_clear_display();
110#ifdef HAVE_NEW_CHARCELL_LCD
111 lcd_double_height(true); 110 lcd_double_height(true);
112#endif
113 lcd_puts(0, 0, rockbox); 111 lcd_puts(0, 0, rockbox);
114 lcd_puts(0, 1, appsversion); 112 lcd_puts(0, 1, appsversion);
115#endif 113#endif
@@ -123,7 +121,7 @@ bool show_credits(void)
123 int btn; 121 int btn;
124 122
125 show_logo(); 123 show_logo();
126#ifdef HAVE_NEW_CHARCELL_LCD 124#ifdef HAVE_LCD_CHARCELLS
127 lcd_double_height(false); 125 lcd_double_height(false);
128#endif 126#endif
129 127
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
89static struct menu menus[MAX_MENUS]; 87static struct menu menus[MAX_MENUS];
90static bool inuse[MAX_MENUS] = { false }; 88static 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 {
diff --git a/apps/tree.c b/apps/tree.c
index b026211f3c..1b19b04bba 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -303,7 +303,7 @@ static int showdir(char *path, int start)
303 qsort(dircache,filesindir,sizeof(struct entry),compare); 303 qsort(dircache,filesindir,sizeof(struct entry),compare);
304 304
305 if ( dir_buffer_full || filesindir == MAX_FILES_IN_DIR ) { 305 if ( dir_buffer_full || filesindir == MAX_FILES_IN_DIR ) {
306#ifdef HAVE_NEW_CHARCELL_LCD 306#ifdef HAVE_LCD_CHARCELLS
307 lcd_double_height(false); 307 lcd_double_height(false);
308#endif 308#endif
309 lcd_clear_display(); 309 lcd_clear_display();
@@ -347,7 +347,7 @@ static int showdir(char *path, int start)
347 } 347 }
348 348
349 lcd_stop_scroll(); 349 lcd_stop_scroll();
350#ifdef HAVE_NEW_CHARCELL_LCD 350#ifdef HAVE_LCD_CHARCELLS
351 lcd_double_height(false); 351 lcd_double_height(false);
352#endif 352#endif
353 lcd_clear_display(); 353 lcd_clear_display();
@@ -446,7 +446,7 @@ static int showdir(char *path, int start)
446 446
447bool ask_resume(void) 447bool ask_resume(void)
448{ 448{
449#ifdef HAVE_NEW_CHARCELL_LCD 449#ifdef HAVE_LCD_CHARCELLS
450 lcd_double_height(false); 450 lcd_double_height(false);
451#endif 451#endif
452 452