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:
Nicolas Pennequin 2007-04-24 21:00:45 +00:00
parent ab707b8362
commit 4ddc764a7c

View file

@ -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;