Fix building test plugins on non-touch targets, for real.

Change-Id: I8f2105fe3357f00d9e085444cd867bec0e2a7143
This commit is contained in:
Thomas Martitz 2012-01-29 21:51:26 +01:00
parent 476fcfa538
commit 112bc71a0c
2 changed files with 10 additions and 17 deletions

View file

@ -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);

View file

@ -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);