diff options
Diffstat (limited to 'apps/plugins/test_fps.c')
-rw-r--r-- | apps/plugins/test_fps.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c index caabde4d1b..d5bfb55907 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c | |||
@@ -360,17 +360,14 @@ static void time_greyscale(void) | |||
360 | } | 360 | } |
361 | #endif | 361 | #endif |
362 | 362 | ||
363 | static struct touchbutton button[] = { | ||
364 | { | ||
365 | .action = ACTION_STD_OK, | ||
366 | .title = "OK", | ||
367 | /* viewport runtime initialized, rest false/NULL */ | ||
368 | } | ||
369 | }; | ||
370 | |||
371 | void plugin_quit(void) | 363 | void plugin_quit(void) |
372 | { | 364 | { |
373 | #ifdef HAVE_TOUCHSCREEN | 365 | #ifdef HAVE_TOUCHSCREEN |
366 | static struct touchbutton button[] = {{ | ||
367 | .action = ACTION_STD_OK, | ||
368 | .title = "OK", | ||
369 | /* .vp runtime initialized, rest false/NULL */ | ||
370 | }}; | ||
374 | struct viewport *vp = &button[0].vp; | 371 | struct viewport *vp = &button[0].vp; |
375 | struct screen *lcd = rb->screens[SCREEN_MAIN]; | 372 | struct screen *lcd = rb->screens[SCREEN_MAIN]; |
376 | rb->viewport_set_defaults(vp, SCREEN_MAIN); | 373 | rb->viewport_set_defaults(vp, SCREEN_MAIN); |