summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-24 21:00:45 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-24 21:00:45 +0000
commit4ddc764a7c1738fc39da8b95c560d07940e8de9a (patch)
treeab714358ee1e0f859d71e5b97f107fcdc53f2dbd /apps/screen_access.c
parentab707b836209dd799176579c06196962f320351e (diff)
downloadrockbox-4ddc764a7c1738fc39da8b95c560d07940e8de9a.tar.gz
rockbox-4ddc764a7c1738fc39da8b95c560d07940e8de9a.tar.bz2
rockbox-4ddc764a7c1738fc39da8b95c560d07940e8de9a.zip
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
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c2
1 files changed, 1 insertions, 1 deletions
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;