summaryrefslogtreecommitdiff
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-11-08 21:34:46 +0000
committerThomas Martitz <kugel@rockbox.org>2011-11-08 21:34:46 +0000
commit13209604c1512658e729d0bd9f1c54cf3e53568d (patch)
tree2787f9036b5c40cf79cd324f3d215bb9d48dd34a /apps/screen_access.c
parent6223ad266e556f5b8d749d5f4fe08e27385be66f (diff)
downloadrockbox-13209604c1512658e729d0bd9f1c54cf3e53568d.tar.gz
rockbox-13209604c1512658e729d0bd9f1c54cf3e53568d.zip
Add new lcd_bmp and lcd_bmp_part APIs.
This new APIs wrap around lcd_[mono|transparent]_bitmap/_part calls and handle all kinds bitmaps. The intended use is to draw bitmaps that come from read_bmp_fd/_file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30936 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 19df13dbc3..b7dc90b5bd 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -197,6 +197,8 @@ struct screen screens[NB_SCREENS] =
197 .transparent_bitmap=(screen_bitmap_func*)&lcd_bitmap_transparent, 197 .transparent_bitmap=(screen_bitmap_func*)&lcd_bitmap_transparent,
198 .transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_bitmap_transparent_part, 198 .transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_bitmap_transparent_part,
199#endif 199#endif
200 .bmp = &lcd_bmp,
201 .bmp_part = &lcd_bmp_part,
200#if LCD_DEPTH > 1 202#if LCD_DEPTH > 1
201#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && LCD_REMOTE_DEPTH > 1 203#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && LCD_REMOTE_DEPTH > 1
202 .color_to_native=&lcd_color_to_native, 204 .color_to_native=&lcd_color_to_native,
@@ -296,6 +298,8 @@ struct screen screens[NB_SCREENS] =
296 .transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part, 298 .transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part,
297 /* No colour remotes yet */ 299 /* No colour remotes yet */
298#endif 300#endif
301 .bmp = &lcd_remote_bmp,
302 .bmp_part = &lcd_remote_bmp_part,
299#if LCD_REMOTE_DEPTH > 1 303#if LCD_REMOTE_DEPTH > 1
300#if defined(HAVE_LCD_COLOR) 304#if defined(HAVE_LCD_COLOR)
301 .color_to_native=&lcd_remote_color_to_native, 305 .color_to_native=&lcd_remote_color_to_native,