diff options
| author | Mats Lidell <matsl@rockbox.org> | 2002-08-21 10:43:31 +0000 |
|---|---|---|
| committer | Mats Lidell <matsl@rockbox.org> | 2002-08-21 10:43:31 +0000 |
| commit | 6866cef936eb29767f7e9f3fa4e3d1f0e392eebe (patch) | |
| tree | 684e12f083883a2ebe6c8fde4221b03206308509 /firmware | |
| parent | 89d2285e0010adda3a2d9d936733943d93c25cd1 (diff) | |
| download | rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.zip rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.tar.gz rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.tar.bz2 rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.tar.xz | |
Added icons for charcell simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/drivers/lcd.c | 16 | ||||
| -rw-r--r-- | firmware/drivers/lcd.h | 4 |
2 files changed, 17 insertions, 3 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 2062a1d..4c36ee1 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -32,6 +32,9 @@ #include "panic.h" #endif +#if defined(SIMULATOR) +#include "sim_icons.h" +#endif /*** definitions ***/ @@ -492,8 +495,7 @@ void lcd_icon(int icon, bool enable) #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) void lcd_icon(int icon, bool enable) { - icon = icon; - enable = enable; + sim_lcd_icon(icon, enable); } #endif @@ -648,11 +650,19 @@ void lcd_update_rect (int x_start, int y, */ void lcd_clear_display (void) { - memset (lcd_framebuffer, 0, sizeof lcd_framebuffer); #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) + /* Clear just the text portion of the display */ + int x, y; + for (y = 8; y <= (32 + 7); ++y) + { + for (x = 0; x < LCD_WIDTH; x++) + CLEAR_PIXEL(x, y); + } /* this function is being used when simulating a charcell LCD and then we update immediately */ lcd_update(); +#else + memset (lcd_framebuffer, 0, sizeof lcd_framebuffer); #endif } diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 4aab039..b99fa54 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -46,6 +46,10 @@ extern void lcd_update_rect(int x, int y, int width, int height); #define lcd_update() #endif +#if defined(SIMULATOR) +#include "sim_icons.h" +#endif + #ifdef HAVE_LCD_CHARCELLS /* Icon definitions for lcd_icon() */ |