summaryrefslogtreecommitdiffstats
path: root/apps/plugins/minesweeper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/minesweeper.c')
-rw-r--r--apps/plugins/minesweeper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index adecc00502..5b5b422e08 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -692,7 +692,9 @@ enum minesweeper_status minesweeper( void )
{
int i, j;
int button;
+#if defined(HAVE_TOUCHSCREEN) || defined(MINESWP_TOGGLE_PRE)
int lastbutton = BUTTON_NONE;
+#endif
/* the cursor coordinates */
int x=0, y=0;
@@ -898,8 +900,10 @@ enum minesweeper_status minesweeper( void )
return MINESWEEPER_USB;
break;
}
+#if defined(HAVE_TOUCHSCREEN) || defined(MINESWP_TOGGLE_PRE)
if( button != BUTTON_NONE )
lastbutton = button;
+#endif
}
}