diff options
Diffstat (limited to 'apps/plugins/sliding_puzzle.c')
-rw-r--r-- | apps/plugins/sliding_puzzle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index aeac96dfba..92c9db768f 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c | |||
@@ -618,7 +618,9 @@ static void puzzle_init(void) | |||
618 | static int puzzle_loop(void) | 618 | static int puzzle_loop(void) |
619 | { | 619 | { |
620 | int button; | 620 | int button; |
621 | #if defined(PUZZLE_SHUFFLE_PICTURE_PRE) | ||
621 | int lastbutton = BUTTON_NONE; | 622 | int lastbutton = BUTTON_NONE; |
623 | #endif | ||
622 | bool load_success; | 624 | bool load_success; |
623 | 625 | ||
624 | puzzle_init(); | 626 | puzzle_init(); |
@@ -689,8 +691,10 @@ static int puzzle_loop(void) | |||
689 | return PLUGIN_USB_CONNECTED; | 691 | return PLUGIN_USB_CONNECTED; |
690 | break; | 692 | break; |
691 | } | 693 | } |
694 | #if defined(PUZZLE_SHUFFLE_PICTURE_PRE) | ||
692 | if (button != BUTTON_NONE) | 695 | if (button != BUTTON_NONE) |
693 | lastbutton = button; | 696 | lastbutton = button; |
697 | #endif | ||
694 | } | 698 | } |
695 | } | 699 | } |
696 | 700 | ||