diff options
Diffstat (limited to 'apps/plugins/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index 6e77b62718..6437c8d4fd 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c | |||
@@ -641,7 +641,10 @@ static int cb_menu(void) | |||
641 | struct cb_command cb_getcommand (void) { | 641 | struct cb_command cb_getcommand (void) { |
642 | static short x = 4 , y = 3 ; | 642 | static short x = 4 , y = 3 ; |
643 | short c , r , l; | 643 | short c , r , l; |
644 | int button, lastbutton = BUTTON_NONE; | 644 | int button; |
645 | #if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE) | ||
646 | int lastbutton = BUTTON_NONE; | ||
647 | #endif | ||
645 | int marked = false , from_marked = false ; | 648 | int marked = false , from_marked = false ; |
646 | short marked_x = 0 , marked_y = 0 ; | 649 | short marked_x = 0 , marked_y = 0 ; |
647 | struct cb_command result = { 0, {0,0,0,0,0}, 0 }; | 650 | struct cb_command result = { 0, {0,0,0,0,0}, 0 }; |
@@ -761,8 +764,10 @@ struct cb_command cb_getcommand (void) { | |||
761 | } | 764 | } |
762 | break; | 765 | break; |
763 | } | 766 | } |
767 | #if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE) | ||
764 | if (button != BUTTON_NONE) | 768 | if (button != BUTTON_NONE) |
765 | lastbutton = button; | 769 | lastbutton = button; |
770 | #endif | ||
766 | } | 771 | } |
767 | 772 | ||
768 | } | 773 | } |