summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/lib/pluginlib_touchscreen.c4
-rw-r--r--apps/plugins/reversi/reversi-gui.c8
2 files changed, 6 insertions, 6 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/*******************************************************************************
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) {
336#endif 336#endif
337#endif 337#endif
338 338
339 rb->lcd_set_viewport(&tempvp); 339 rb->screens[SCREEN_MAIN]->set_viewport(&tempvp);
340 rb->lcd_puts_scroll(0, 0, buf); 340 rb->lcd_puts_scroll(0, 0, buf);
341 rb->lcd_set_viewport(NULL); 341 rb->screens[SCREEN_MAIN]->set_viewport(NULL);
342 342
343 y = LEGEND_Y(1); 343 y = LEGEND_Y(1);
344 344
@@ -346,9 +346,9 @@ static void reversi_gui_display_board(void) {
346 rb->snprintf(buf, sizeof(buf), "%01d", r); 346 rb->snprintf(buf, sizeof(buf), "%01d", r);
347 347
348 tempvp.y=y; 348 tempvp.y=y;
349 rb->lcd_set_viewport(&tempvp); 349 rb->screens[SCREEN_MAIN]->set_viewport(&tempvp);
350 rb->lcd_puts_scroll(0, 0, buf); 350 rb->lcd_puts_scroll(0, 0, buf);
351 rb->lcd_set_viewport(NULL); 351 rb->screens[SCREEN_MAIN]->set_viewport(NULL);
352 352
353 /* Draw the box around the current player */ 353 /* Draw the box around the current player */
354 r = (cur_player == BLACK ? 0 : 1); 354 r = (cur_player == BLACK ? 0 : 1);