From 8a0152bd4ae638c1fe4917b855fcb9fc6a15202c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 10 Oct 2010 23:15:05 +0000 Subject: 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 --- apps/screen_access.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/screen_access.h') diff --git a/apps/screen_access.h b/apps/screen_access.h index a154d20195..fb7aa7bd26 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -117,6 +117,8 @@ struct screen void (*update_viewport_rect)(int x, int y, int width, int height); void (*fillrect)(int x, int y, int width, int height); void (*drawrect)(int x, int y, int width, int height); + void (*fill_viewport)(const struct viewport *vp); + void (*draw_viewport)(const struct viewport *vp); void (*drawpixel)(int x, int y); void (*drawline)(int x1, int y1, int x2, int y2); void (*vline)(int x, int y1, int y2); @@ -139,8 +141,6 @@ struct screen void (*puts_scroll)(int x, int y, const unsigned char *string); void (*puts_scroll_offset)(int x, int y, const unsigned char *string, int x_offset); - void (*puts_scroll_xyoffset)(int x, int y, const unsigned char *string, - int x_offset, int y_offset); void (*scroll_speed)(int speed); void (*scroll_delay)(int ms); void (*stop_scroll)(void); -- cgit v1.2.3