summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-02 00:13:54 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-02 00:13:54 +0000
commit239cda6fc4da834da48422e653bc71d8b8cc8a22 (patch)
tree04fb70f18fe3e33de362aa52ec898aefc51a4b9b /apps/screen_access.c
parent6d0e87bd8824a67ef11638c6099cbcfa27cac315 (diff)
downloadrockbox-239cda6fc4da834da48422e653bc71d8b8cc8a22.tar.gz
rockbox-239cda6fc4da834da48422e653bc71d8b8cc8a22.tar.bz2
rockbox-239cda6fc4da834da48422e653bc71d8b8cc8a22.zip
Multi-screen API: * lcd_update() is now available for all LCDs. * Added missing functions for non-monochrome remote LCDs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12995 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 6728c4ea2a..bf2d222760 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -54,6 +54,16 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->mono_bitmap_part=&lcd_remote_mono_bitmap_part;
screen->set_drawmode=&lcd_remote_set_drawmode;
#if LCD_REMOTE_DEPTH > 1
+ screen->bitmap=&lcd_remote_bitmap;
+ screen->bitmap_part=&lcd_remote_bitmap_part;
+#if LCD_REMOTE_DEPTH == 2
+ /* No transparency yet for grayscale lcd */
+ screen->transparent_bitmap=&lcd_remote_bitmap;
+ screen->transparent_bitmap_part=&lcd_remote_bitmap_part;
+#else
+ screen->transparent_bitmap=&lcd_remote_bitmap_transparent;
+ screen->transparent_bitmap_part=&lcd_remote_bitmap_transparent_part;
+#endif
#if defined(HAVE_LCD_COLOR)
screen->color_to_native=&lcd_remote_color_to_native;
#endif
@@ -181,9 +191,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->scroll_delay=&lcd_scroll_delay;
screen->stop_scroll=&lcd_stop_scroll;
screen->clear_display=&lcd_clear_display;
-#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR)
screen->update=&lcd_update;
-#endif
screen->backlight_on=&backlight_on;
screen->backlight_off=&backlight_off;
screen->is_backlight_on=&is_backlight_on;