summaryrefslogtreecommitdiff
path: root/apps/plugins/solitaire.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/solitaire.c')
-rw-r--r--apps/plugins/solitaire.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index a87311035f..01a75df39a 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -629,6 +629,14 @@ CONFIG_KEYPAD == MROBE500_PAD
629 629
630#define NOT_A_COL -1 630#define NOT_A_COL -1
631 631
632#if defined(SOL_LEFT_PRE) || defined(SOL_RIGHT_PRE) || \
633 defined(SOL_DOWN_PRE) || defined(SOL_UP_PRE) || \
634 defined(SOL_CUR2STACK_PRE) || defined(SOL_MOVE_PRE) || \
635 defined(SOL_REM2CUR_PRE) || defined(SOL_REM2STACK_PRE) || \
636 defined(SOL_DRAW_PRE)
637# define NEED_LASTBUTTON_VAR
638#endif
639
632typedef struct 640typedef struct
633{ 641{
634 signed char suit; 642 signed char suit;
@@ -1418,7 +1426,10 @@ int solitaire( int skipmenu )
1418{ 1426{
1419 1427
1420 int i,j; 1428 int i,j;
1421 int button, lastbutton = 0; 1429 int button;
1430#ifdef NEED_LASTBUTTON_VAR
1431 int lastbutton = 0;
1432#endif
1422 int c,h,prevcard; 1433 int c,h,prevcard;
1423 int biggest_col_length; 1434 int biggest_col_length;
1424 1435
@@ -1906,8 +1917,9 @@ int solitaire( int skipmenu )
1906 break; 1917 break;
1907 } 1918 }
1908 1919
1909 if( button != BUTTON_NONE ) 1920#ifdef NEED_LASTBUTTON_VAR
1910 lastbutton = button; 1921 lastbutton = button;
1922#endif
1911 1923
1912 /* fix incoherences concerning cur_col and cur_card */ 1924 /* fix incoherences concerning cur_col and cur_card */
1913 c = find_card_col( cur_card ); 1925 c = find_card_col( cur_card );