summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_viewports.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_viewports.c')
-rw-r--r--apps/plugins/test_viewports.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/test_viewports.c b/apps/plugins/test_viewports.c
index 2bada01f79..6eff0249a2 100644
--- a/apps/plugins/test_viewports.c
+++ b/apps/plugins/test_viewports.c
@@ -130,7 +130,7 @@ static void *test_address_fn(int x, int y)
struct frame_buffer_t *fb = vp0.buffer;
/* LCD_STRIDEFORMAT & LCD_NATIVE_STRIDE macros allow Horiz screens to work with RB */
-#if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE
+#if LCD_STRIDEFORMAT == VERTICAL_STRIDE
size_t element = (x * LCD_NATIVE_STRIDE(fb->stride)) + y;
#else
size_t element = (y * LCD_NATIVE_STRIDE(fb->stride)) + x;
@@ -249,9 +249,11 @@ enum plugin_status plugin_start(const void* parameter)
rb->button_get(true);
+ rb->screens[SCREEN_MAIN]->scroll_stop();
/* Restore the default viewport */
rb->screens[SCREEN_MAIN]->set_viewport(NULL);
#ifdef HAVE_REMOTE_LCD
+ rb->screens[SCREEN_REMOTE]->scroll_stop();
rb->screens[SCREEN_REMOTE]->set_viewport(NULL);
#endif