From 2287dd9daaf62e8624755c41f2a0571c5b9d3357 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 3 Aug 2009 15:09:41 +0000 Subject: 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 --- apps/plugins/lib/pluginlib_touchscreen.c | 4 ++-- apps/plugins/reversi/reversi-gui.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/plugins') 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) { /* Set the current viewport to the button so that all drawing * operations are within the button location. */ - rb->lcd_set_viewport(&data[i].vp); + rb->screens[SCREEN_MAIN]->set_viewport(&data[i].vp); /* Get the string size so that the title can be centered. */ rb->lcd_getstringsize(data[i].title, &title_width, &title_height); @@ -132,7 +132,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) { rb->lcd_drawrect( 0, 0, data[i].vp.width, data[i].vp.height); } } - rb->lcd_set_viewport(NULL); /* Go back to the default viewport */ + rb->screens[SCREEN_MAIN]->set_viewport(NULL); /* Go back to the default viewport */ } /******************************************************************************* diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index 630ea5a0e1..c006965bd3 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c @@ -336,9 +336,9 @@ static void reversi_gui_display_board(void) { #endif #endif - rb->lcd_set_viewport(&tempvp); + rb->screens[SCREEN_MAIN]->set_viewport(&tempvp); rb->lcd_puts_scroll(0, 0, buf); - rb->lcd_set_viewport(NULL); + rb->screens[SCREEN_MAIN]->set_viewport(NULL); y = LEGEND_Y(1); @@ -346,9 +346,9 @@ static void reversi_gui_display_board(void) { rb->snprintf(buf, sizeof(buf), "%01d", r); tempvp.y=y; - rb->lcd_set_viewport(&tempvp); + rb->screens[SCREEN_MAIN]->set_viewport(&tempvp); rb->lcd_puts_scroll(0, 0, buf); - rb->lcd_set_viewport(NULL); + rb->screens[SCREEN_MAIN]->set_viewport(NULL); /* Draw the box around the current player */ r = (cur_player == BLACK ? 0 : 1); -- cgit v1.2.3