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 caabde4..d5bfb55 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c @@ -360,17 +360,14 @@ static void time_greyscale(void) } #endif -static struct touchbutton button[] = { - { - .action = ACTION_STD_OK, - .title = "OK", - /* viewport runtime initialized, rest false/NULL */ - } -}; - void plugin_quit(void) { #ifdef HAVE_TOUCHSCREEN + static struct touchbutton button[] = {{ + .action = ACTION_STD_OK, + .title = "OK", + /* .vp runtime initialized, rest false/NULL */ + }}; struct viewport *vp = &button[0].vp; struct screen *lcd = rb->screens[SCREEN_MAIN]; rb->viewport_set_defaults(vp, SCREEN_MAIN); |