diff options
Diffstat (limited to 'apps/plugins/test_codec.c')
| -rw-r--r-- | apps/plugins/test_codec.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 50d3fc9..3e13842 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -816,19 +816,15 @@ void cleanup(void) } #endif - -static struct touchbutton button[] = { - { - .action = ACTION_STD_OK, - .title = "OK", - /* viewport runtime initialized, rest false/NULL */ - } -}; - void plugin_quit(void) { int btn; #ifdef HAVE_TOUCHSCREEN + static struct touchbutton button[] = {{ + .action = ACTION_STD_OK, + .title = "OK", + /* viewport 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); |