summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorGreg White <gwhite@rockbox.org>2007-01-04 12:13:56 +0000
committerGreg White <gwhite@rockbox.org>2007-01-04 12:13:56 +0000
commit922c0d6d3357bcd36f0c695a19ee2ab3f20c52de (patch)
tree83eae28e2d6954d021a7cba86da73851e8885c30 /firmware
parentae5cf68e481ff09d6da5078ecb8ea6d05d6d3290 (diff)
Fix simulator build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11910 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-16bit.c6
-rw-r--r--firmware/export/lcd.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index 949f80ffbc..024386e4e5 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -104,7 +104,7 @@ int lcd_get_drawmode(void)
return drawmode;
}
-#if !defined(TOSHIBA_GIGABEAT_F)
+#if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR)
void lcd_set_foreground(unsigned color)
{
fg_pattern = color;
@@ -116,7 +116,7 @@ unsigned lcd_get_foreground(void)
return fg_pattern;
}
-#if !defined(TOSHIBA_GIGABEAT_F)
+#if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR)
void lcd_set_background(unsigned color)
{
bg_pattern = color;
@@ -231,7 +231,7 @@ fb_data* lcd_get_backdrop(void)
/*** drawing functions ***/
/* Clear the whole display */
-#if !defined(TOSHIBA_GIGABEAT_F)
+#if !defined(TOSHIBA_GIGABEAT_F) || defined(SIMULATOR)
void lcd_clear_display(void)
{
fb_data *dst = LCDADDR(0, 0);
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index fc0562419c..8a65d09fa3 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -345,10 +345,10 @@ extern unsigned lcd_get_background(void);
extern void lcd_set_drawinfo(int mode, unsigned foreground,
unsigned background);
void lcd_set_backdrop(fb_data* backdrop);
-#if !defined(TOSHIBA_GIGABEAT_F)
-#define lcd_device_prepare_backdrop(x) ;
-#else
+#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR)
void lcd_device_prepare_backdrop(fb_data* backdrop);
+#else
+#define lcd_device_prepare_backdrop(x) ;
#endif
fb_data* lcd_get_backdrop(void);