From 4ddc764a7c1738fc39da8b95c560d07940e8de9a Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Tue, 24 Apr 2007 21:00:45 +0000 Subject: Small fix to prevent crashing when attempting to use non-mono bitmaps in a RWPS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13256 a1c6a512-1295-4272-9138-f99709370657 --- apps/screen_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/screen_access.c b/apps/screen_access.c index a642b65d20..a33f14b9c2 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c @@ -55,7 +55,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type) screen->bitmap=(screen_bitmap_func*)&lcd_remote_bitmap; screen->bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part; screen->set_drawmode=&lcd_remote_set_drawmode; -#if LCD_DEPTH <= 2 +#if LCD_REMOTE_DEPTH <= 2 /* No transparency yet for grayscale and mono lcd */ screen->transparent_bitmap=(screen_bitmap_func*)&lcd_remote_bitmap; screen->transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part; -- cgit v1.2.3