diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-11-08 21:34:46 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-11-08 21:34:46 +0000 |
commit | 13209604c1512658e729d0bd9f1c54cf3e53568d (patch) | |
tree | 2787f9036b5c40cf79cd324f3d215bb9d48dd34a /firmware/export | |
parent | 6223ad266e556f5b8d749d5f4fe08e27385be66f (diff) | |
download | rockbox-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 'firmware/export')
-rw-r--r-- | firmware/export/lcd-remote.h | 4 | ||||
-rw-r--r-- | firmware/export/lcd.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index e2f2ab16ec..46ec2a949a 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -216,6 +216,8 @@ extern void lcd_bitmap_remote_transparent(const fb_remote_data *src, int x, | |||
216 | #define lcd_remote_mono_bitmap lcd_remote_bitmap | 216 | #define lcd_remote_mono_bitmap lcd_remote_bitmap |
217 | #define lcd_remote_mono_bitmap_part lcd_remote_bitmap_part | 217 | #define lcd_remote_mono_bitmap_part lcd_remote_bitmap_part |
218 | #endif /* LCD_REMOTE_DEPTH */ | 218 | #endif /* LCD_REMOTE_DEPTH */ |
219 | 219 | extern void lcd_remote_bmp_part(const struct bitmap* bm, int src_x, int src_y, | |
220 | int x, int y, int width, int height); | ||
221 | extern void lcd_remote_bmp(const struct bitmap* bm, int x, int y); | ||
220 | #endif | 222 | #endif |
221 | #endif /* __LCD_REMOTE_H__ */ | 223 | #endif /* __LCD_REMOTE_H__ */ |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index f4336233ab..47ea94bca9 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -543,6 +543,9 @@ extern void lcd_bitmap_transparent_part(const fb_data *src, | |||
543 | int height); | 543 | int height); |
544 | extern void lcd_bitmap_transparent(const fb_data *src, int x, int y, | 544 | extern void lcd_bitmap_transparent(const fb_data *src, int x, int y, |
545 | int width, int height); | 545 | int width, int height); |
546 | extern void lcd_bmp_part(const struct bitmap* bm, int src_x, int src_y, | ||
547 | int x, int y, int width, int height); | ||
548 | extern void lcd_bmp(const struct bitmap* bm, int x, int y); | ||
546 | #else /* LCD_DEPTH == 1 */ | 549 | #else /* LCD_DEPTH == 1 */ |
547 | #define lcd_mono_bitmap lcd_bitmap | 550 | #define lcd_mono_bitmap lcd_bitmap |
548 | #define lcd_mono_bitmap_part lcd_bitmap_part | 551 | #define lcd_mono_bitmap_part lcd_bitmap_part |