summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-10-07 10:19:08 +0000
committerDave Chapman <dave@dchapman.com>2006-10-07 10:19:08 +0000
commit24c337514333460b3738403b264498cad746ccc0 (patch)
treeddb73ad9a2cbacbcfbcad10e1eb306032e48fec9 /apps/screen_access.c
parent39b1cfe3fad4aa5ce4d527b23f4cf9c3d85f6601 (diff)
downloadrockbox-24c337514333460b3738403b264498cad746ccc0.tar.gz
rockbox-24c337514333460b3738403b264498cad746ccc0.tar.bz2
rockbox-24c337514333460b3738403b264498cad746ccc0.zip
Correctly initialise the screen->bitmap function for mono targets - prevents crashes on those targets when inserting USB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11142 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 2bcd2370f5..cac0b862ca 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -131,9 +131,9 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
screen->mono_bitmap=&lcd_mono_bitmap;
screen->mono_bitmap_part=&lcd_mono_bitmap_part;
screen->set_drawmode=&lcd_set_drawmode;
-#if LCD_DEPTH > 1
screen->bitmap=&lcd_bitmap;
screen->bitmap_part=&lcd_bitmap_part;
+#if LCD_DEPTH > 1
#if LCD_DEPTH == 2
/* No transparency yet for grayscale lcd */
screen->transparent_bitmap=&lcd_bitmap;