summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/pluginlib_touchscreen.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-03 15:09:41 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-03 15:09:41 +0000
commit2287dd9daaf62e8624755c41f2a0571c5b9d3357 (patch)
tree4cc9346e7430a667cb8521b8d2ee285470efff73 /apps/plugins/lib/pluginlib_touchscreen.c
parent3b75c86d74937a6bffcb371bb08bdfb182db9d2b (diff)
downloadrockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.gz
rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.zip
Remove find_albumart() from the plugin API as it doesn't exist for them.
Remove lcd_set_viewport() too, and replace the calls with the appropriate multi-screen api calls as calling lcd_* functions should be avoided in favor of the api. Bump API version and sort a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22140 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/pluginlib_touchscreen.c')
-rw-r--r--apps/plugins/lib/pluginlib_touchscreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/pluginlib_touchscreen.c b/apps/plugins/lib/pluginlib_touchscreen.c
index eb023b064c..3168b46ac8 100644
--- a/apps/plugins/lib/pluginlib_touchscreen.c
+++ b/apps/plugins/lib/pluginlib_touchscreen.c
@@ -98,7 +98,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) {
98 /* Set the current viewport to the button so that all drawing 98 /* Set the current viewport to the button so that all drawing
99 * operations are within the button location. 99 * operations are within the button location.
100 */ 100 */
101 rb->lcd_set_viewport(&data[i].vp); 101 rb->screens[SCREEN_MAIN]->set_viewport(&data[i].vp);
102 102
103 /* Get the string size so that the title can be centered. */ 103 /* Get the string size so that the title can be centered. */
104 rb->lcd_getstringsize(data[i].title, &title_width, &title_height); 104 rb->lcd_getstringsize(data[i].title, &title_width, &title_height);
@@ -132,7 +132,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) {
132 rb->lcd_drawrect( 0, 0, data[i].vp.width, data[i].vp.height); 132 rb->lcd_drawrect( 0, 0, data[i].vp.width, data[i].vp.height);
133 } 133 }
134 } 134 }
135 rb->lcd_set_viewport(NULL); /* Go back to the default viewport */ 135 rb->screens[SCREEN_MAIN]->set_viewport(NULL); /* Go back to the default viewport */
136} 136}
137 137
138/******************************************************************************* 138/*******************************************************************************