From c8b6119b38739a10c5e450c6fe37d2f9101341c8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 May 2002 12:19:36 +0000 Subject: Added weird circumvention macros for SIMULATOR builds. When we build a charcell LCD simulator, we keep the bitmap LCD functions too, as we use the bitmap functionality to put characters on screen. But since the charcell LCD api and the bitmap LCD api use the same function names for a few functions, we include redef and undef files to fix that... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@419 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/lcd.h') diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 7e0495cd99..21da38188a 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -63,7 +63,12 @@ extern void lcd_backlight(bool on); extern void lcd_puts(int x, int y, char *string); extern void lcd_define_pattern (int which,char *pattern,int length); -#elif HAVE_LCD_BITMAP +#endif +#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR) + +#if defined(HAVE_LCD_CHARCELLS) && defined(SIMULATOR) +#include +#endif #define LCD_WIDTH 112 /* Display width in pixels */ #define LCD_HEIGHT 64 /* Display height in pixels */ @@ -82,6 +87,10 @@ extern void lcd_clearpixel(int x, int y); void lcd_fontsize(char font, char *width, char *height); +#if defined(HAVE_LCD_CHARCELLS) && defined(SIMULATOR) +#include +#endif + #endif /* CHARCELLS / BITMAP */ #endif /* __LCD_H__ */ -- cgit v1.2.3