summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorMats Lidell <matsl@rockbox.org>2002-10-18 09:24:23 +0000
committerMats Lidell <matsl@rockbox.org>2002-10-18 09:24:23 +0000
commit8ca78b666522ca3a4f13d6baf26da112a77c7220 (patch)
treef4da7e556e380c017f196d853a9937ccbef7c6fd /firmware/drivers
parent073ca0a8bc7e815ecadb79888a1bdb2365bf3d64 (diff)
Undefined functions supplied for simulator in lcd-playersim.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2717 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-player.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c
index a262b83fe9..64587b5319 100644
--- a/firmware/drivers/lcd-player.c
+++ b/firmware/drivers/lcd-player.c
@@ -146,7 +146,7 @@ static char lcd_cram;
static char lcd_pram;
static char lcd_iram;
-
+#ifndef SIMULATOR
void lcd_clear_display(void)
{
int i;
@@ -241,6 +241,13 @@ void lcd_icon(int icon, bool enable)
lcd_write(false, icon_mirror[pos]);
}
+void lcd_set_contrast(int val)
+{
+ lcd_write(true, lcd_contrast_set);
+ lcd_write(false, 31-val);
+}
+#endif /* SIMULATOR */
+
void lcd_init (void)
{
new_lcd = has_new_lcd();
@@ -263,12 +270,6 @@ void lcd_init (void)
sizeof(scroll_stack), scroll_name);
}
-void lcd_set_contrast(int val)
-{
- lcd_write(true, lcd_contrast_set);
- lcd_write(false, 31-val);
-}
-
void lcd_puts_scroll(int x, int y, unsigned char* string )
{
struct scrollinfo* s = &scroll;