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
This commit is contained in:
parent
39b1cfe3fa
commit
24c3375143
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue