diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-10-14 01:32:58 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-10-14 01:32:58 +0000 |
commit | 6aa12c11f741a4544d780d11fc583a25a5aef171 (patch) | |
tree | 0fe4b08bd13817657660c5339247e8ea203f2508 /apps/screen_access.h | |
parent | 1f3360f0216dbf54bcd50547a759fa6e514c6e76 (diff) |
Added a small interface to screens to translate colors into remote gray levels on the x5. Splash screens paint properly with light gray. Should be adapted to a more general approach in the future. A few trailing whitespace trimmings got into a couple files but that is fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11218 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r-- | apps/screen_access.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h index 680c6625fe..cf74a97ba1 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -72,7 +72,7 @@ struct screen void (*scroll_step)(int pixels); void (*puts_offset)(int x, int y, const unsigned char *str, int offset); - void (*puts_style_offset)(int x, int y, const unsigned char *str, + void (*puts_style_offset)(int x, int y, const unsigned char *str, int style, int offset); void (*puts_scroll_style)(int x, int y, const unsigned char *string, int style); @@ -87,12 +87,15 @@ struct screen void (*bitmap)(const fb_data *src, int x, int y, int width, int height); void (*bitmap_part)(const fb_data *src, int src_x, int src_y, - int stride, int x, int y, int width, int height); + int stride, int x, int y, int width, int height); void (*transparent_bitmap)(const fb_data *src, int x, int y, int width, int height); void (*transparent_bitmap_part)(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height); void (*set_drawmode)(int mode); +#if defined(HAVE_LCD_COLOR) && LCD_REMOTE_DEPTH > 1 + unsigned (*color_to_native)(unsigned color); +#endif #if (LCD_DEPTH > 1) || (LCD_REMOTE_DEPTH > 1) unsigned (*get_background)(void); unsigned (*get_foreground)(void); |