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/drivers/lcd.c | |
parent | 89d2285e0010adda3a2d9d936733943d93c25cd1 (diff) | |
download | rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.tar.gz rockbox-6866cef936eb29767f7e9f3fa4e3d1f0e392eebe.zip |
Added icons for charcell simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd.c')
-rw-r--r-- | firmware/drivers/lcd.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 2062a1dc21..4c36ee19e3 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -32,6 +32,9 @@ | |||
32 | #include "panic.h" | 32 | #include "panic.h" |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #if defined(SIMULATOR) | ||
36 | #include "sim_icons.h" | ||
37 | #endif | ||
35 | 38 | ||
36 | 39 | ||
37 | /*** definitions ***/ | 40 | /*** definitions ***/ |
@@ -492,8 +495,7 @@ void lcd_icon(int icon, bool enable) | |||
492 | #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) | 495 | #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) |
493 | void lcd_icon(int icon, bool enable) | 496 | void lcd_icon(int icon, bool enable) |
494 | { | 497 | { |
495 | icon = icon; | 498 | sim_lcd_icon(icon, enable); |
496 | enable = enable; | ||
497 | } | 499 | } |
498 | #endif | 500 | #endif |
499 | 501 | ||
@@ -648,11 +650,19 @@ void lcd_update_rect (int x_start, int y, | |||
648 | */ | 650 | */ |
649 | void lcd_clear_display (void) | 651 | void lcd_clear_display (void) |
650 | { | 652 | { |
651 | memset (lcd_framebuffer, 0, sizeof lcd_framebuffer); | ||
652 | #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) | 653 | #if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) |
654 | /* Clear just the text portion of the display */ | ||
655 | int x, y; | ||
656 | for (y = 8; y <= (32 + 7); ++y) | ||
657 | { | ||
658 | for (x = 0; x < LCD_WIDTH; x++) | ||
659 | CLEAR_PIXEL(x, y); | ||
660 | } | ||
653 | /* this function is being used when simulating a charcell LCD and | 661 | /* this function is being used when simulating a charcell LCD and |
654 | then we update immediately */ | 662 | then we update immediately */ |
655 | lcd_update(); | 663 | lcd_update(); |
664 | #else | ||
665 | memset (lcd_framebuffer, 0, sizeof lcd_framebuffer); | ||
656 | #endif | 666 | #endif |
657 | } | 667 | } |
658 | 668 | ||