1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2009-08-03 15:09:41 +00:00
parent 3b75c86d74
commit 2287dd9daa
4 changed files with 14 additions and 21 deletions

View file

@ -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 */
}
/*******************************************************************************