summaryrefslogtreecommitdiff
path: root/apps/plugins/reversi
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/reversi
parent3b75c86d74937a6bffcb371bb08bdfb182db9d2b (diff)
downloadrockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.zip
rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.gz
rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.bz2
rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.xz
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/reversi')
-rw-r--r--apps/plugins/reversi/reversi-gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c
index 630ea5a..c006965 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);