forked from len0rd/rockbox
Multi-screen API: * lcd_update() is now available for all LCDs. * Added missing functions for non-monochrome remote LCDs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12995 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d0e87bd88
commit
239cda6fc4
1 changed files with 10 additions and 2 deletions
|
|
@ -54,6 +54,16 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
|
||||||
screen->mono_bitmap_part=&lcd_remote_mono_bitmap_part;
|
screen->mono_bitmap_part=&lcd_remote_mono_bitmap_part;
|
||||||
screen->set_drawmode=&lcd_remote_set_drawmode;
|
screen->set_drawmode=&lcd_remote_set_drawmode;
|
||||||
#if LCD_REMOTE_DEPTH > 1
|
#if LCD_REMOTE_DEPTH > 1
|
||||||
|
screen->bitmap=&lcd_remote_bitmap;
|
||||||
|
screen->bitmap_part=&lcd_remote_bitmap_part;
|
||||||
|
#if LCD_REMOTE_DEPTH == 2
|
||||||
|
/* No transparency yet for grayscale lcd */
|
||||||
|
screen->transparent_bitmap=&lcd_remote_bitmap;
|
||||||
|
screen->transparent_bitmap_part=&lcd_remote_bitmap_part;
|
||||||
|
#else
|
||||||
|
screen->transparent_bitmap=&lcd_remote_bitmap_transparent;
|
||||||
|
screen->transparent_bitmap_part=&lcd_remote_bitmap_transparent_part;
|
||||||
|
#endif
|
||||||
#if defined(HAVE_LCD_COLOR)
|
#if defined(HAVE_LCD_COLOR)
|
||||||
screen->color_to_native=&lcd_remote_color_to_native;
|
screen->color_to_native=&lcd_remote_color_to_native;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -181,9 +191,7 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
|
||||||
screen->scroll_delay=&lcd_scroll_delay;
|
screen->scroll_delay=&lcd_scroll_delay;
|
||||||
screen->stop_scroll=&lcd_stop_scroll;
|
screen->stop_scroll=&lcd_stop_scroll;
|
||||||
screen->clear_display=&lcd_clear_display;
|
screen->clear_display=&lcd_clear_display;
|
||||||
#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR)
|
|
||||||
screen->update=&lcd_update;
|
screen->update=&lcd_update;
|
||||||
#endif
|
|
||||||
screen->backlight_on=&backlight_on;
|
screen->backlight_on=&backlight_on;
|
||||||
screen->backlight_off=&backlight_off;
|
screen->backlight_off=&backlight_off;
|
||||||
screen->is_backlight_on=&is_backlight_on;
|
screen->is_backlight_on=&is_backlight_on;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue