From 281403a4d839924df41480fc020f401211a6e88b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 28 Jan 2006 23:12:20 +0000 Subject: Work-in-progress transparent bitmaps with 255,0,255 as the transparent color, not yet working on the H100 series git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8476 a1c6a512-1295-4272-9138-f99709370657 --- apps/screen_access.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/screen_access.c') diff --git a/apps/screen_access.c b/apps/screen_access.c index 8f7f5c5..d38f1ca 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c @@ -121,6 +121,12 @@ void screen_init(struct screen * screen, enum screen_type screen_type) screen->set_drawmode=&lcd_set_drawmode; #if LCD_DEPTH > 1 screen->bitmap=&lcd_bitmap; +#if LCD_DEPTH == 2 + /* No transparency yet for grayscale lcd */ + screen->transparent_bitmap=&lcd_bitmap; +#else + screen->transparent_bitmap=&lcd_bitmap_transparent; +#endif screen->set_background=&lcd_set_background; #endif screen->update_rect=&lcd_update_rect; -- cgit v1.1