diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-10-10 23:15:05 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-10-10 23:15:05 +0000 |
commit | 8a0152bd4ae638c1fe4917b855fcb9fc6a15202c (patch) | |
tree | 7a3a81bf30d49a3c072d89485f79207bc7d2c29e /firmware/export/lcd-remote.h | |
parent | 752c91b50dcf36e4476cf89cceb6493e2fd4c586 (diff) | |
download | rockbox-8a0152bd4ae638c1fe4917b855fcb9fc6a15202c.tar.gz rockbox-8a0152bd4ae638c1fe4917b855fcb9fc6a15202c.zip |
Two new lcd/multi screen api convinience functions: draw_viewport(), fill_viewport().
They work as the drawrect/fillrect pendants but work on a viewport basis; pass NULL to draw the current viewport (the one set with set_viewport()).
In conjunction with action_get_touchscreen_press_in_vp() it should be less of a pain to draw buttons and get presses on them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28239 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd-remote.h')
-rw-r--r-- | firmware/export/lcd-remote.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index 93b2968033..894d35ca11 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -178,6 +178,8 @@ extern void lcd_remote_hline(int x1, int x2, int y); | |||
178 | extern void lcd_remote_vline(int x, int y1, int y2); | 178 | extern void lcd_remote_vline(int x, int y1, int y2); |
179 | extern void lcd_remote_drawrect(int x, int y, int width, int height); | 179 | extern void lcd_remote_drawrect(int x, int y, int width, int height); |
180 | extern void lcd_remote_fillrect(int x, int y, int width, int height); | 180 | extern void lcd_remote_fillrect(int x, int y, int width, int height); |
181 | extern void lcd_remote_draw_viewport(const struct viewport *vp); | ||
182 | extern void lcd_remote_fill_viewport(const struct viewport *vp); | ||
181 | extern void lcd_remote_bitmap_part(const fb_remote_data *src, int src_x, | 183 | extern void lcd_remote_bitmap_part(const fb_remote_data *src, int src_x, |
182 | int src_y, int stride, int x, int y, | 184 | int src_y, int stride, int x, int y, |
183 | int width, int height); | 185 | int width, int height); |