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
This commit is contained in:
parent
ab707b8362
commit
4ddc764a7c
1 changed files with 1 additions and 1 deletions
|
@ -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=(screen_bitmap_func*)&lcd_remote_bitmap;
|
||||||
screen->bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part;
|
screen->bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part;
|
||||||
screen->set_drawmode=&lcd_remote_set_drawmode;
|
screen->set_drawmode=&lcd_remote_set_drawmode;
|
||||||
#if LCD_DEPTH <= 2
|
#if LCD_REMOTE_DEPTH <= 2
|
||||||
/* No transparency yet for grayscale and mono lcd */
|
/* No transparency yet for grayscale and mono lcd */
|
||||||
screen->transparent_bitmap=(screen_bitmap_func*)&lcd_remote_bitmap;
|
screen->transparent_bitmap=(screen_bitmap_func*)&lcd_remote_bitmap;
|
||||||
screen->transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part;
|
screen->transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part;
|
||||||
|
|
Loading…
Reference in a new issue