From 4ed387d60313ac79fa7ac8b403bf3195f7c0c549 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 17 Mar 2009 03:36:36 +0000 Subject: Fix reds and yellows (hopefully). Some targets apparently didn't properly #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/arm/s3c2440') diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c index fd52eda5e9..46aac24e60 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c @@ -42,10 +42,12 @@ extern struct viewport* current_vp; extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src, int width, int height); +#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) bool lcd_active(void) { return lcd_on; } +#endif static unsigned int LCDBANK(unsigned int address) { @@ -278,6 +280,7 @@ void lcd_init_device(void) LCD_SPI_init(); } +#if defined(HAVE_LCD_SLEEP) void lcd_sleep(void) { if (lcd_powered) @@ -289,7 +292,9 @@ void lcd_sleep(void) LCD_SPI_powerdown(); } } +#endif +#if defined(HAVE_LCD_ENABLE) void lcd_enable(bool state) { if (state == lcd_on) @@ -315,6 +320,7 @@ void lcd_enable(bool state) lcd_on = false; } } +#endif void lcd_set_flip(bool yesno) { if (!lcd_on) -- cgit v1.2.3