summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-06-10 13:44:29 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-06-10 13:44:29 +0000
commitf6a296929e5a66b61967eb82a74c6ffed0af7fae (patch)
tree41f3815fe153508c34267a377440d1d54b195283 /firmware
parente5a1314d122983cae05ae8f572f62124cbb8167e (diff)
downloadrockbox-f6a296929e5a66b61967eb82a74c6ffed0af7fae.tar.gz
rockbox-f6a296929e5a66b61967eb82a74c6ffed0af7fae.zip
lcd_init() for player too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@941 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 55a3160ed5..67d6f5e75a 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -374,9 +374,18 @@ void lcd_double_height(bool on)
lcd_write(true,on?9:8);
}
-#endif
+#endif /* !SIMULATOR */
+
+#endif /* HAVE_LCD_CHARCELLS */
+#if defined(HAVE_LCD_CHARCELLS) || defined(SIMULATOR) /* not BITMAP */
+void lcd_init (void)
+{
+ create_thread(scroll_thread, scroll_stack, sizeof(scroll_stack));
+}
#endif
+
+
#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR) /* not CHARCELLS */
/*
@@ -417,13 +426,7 @@ static unsigned char ones[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
static char fonts[] = { 6,8,12 };
static char fontheight[] = { 8,12,16 };
-#ifdef SIMULATOR
-
-void lcd_init (void)
-{
- create_thread(scroll_thread, scroll_stack, sizeof(scroll_stack));
-}
-#else
+#ifndef SIMULATOR
/*
* Initialize LCD