diff options
Diffstat (limited to 'apps/plugins/fractals/fractal.c')
-rw-r--r-- | apps/plugins/fractals/fractal.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c index 21d33387b5..5d8413ca6f 100644 --- a/apps/plugins/fractals/fractal.c +++ b/apps/plugins/fractals/fractal.c | |||
@@ -93,7 +93,12 @@ static void cleanup(void) | |||
93 | 93 | ||
94 | enum plugin_status plugin_start(const void* parameter) | 94 | enum plugin_status plugin_start(const void* parameter) |
95 | { | 95 | { |
96 | #if defined(FRACTAL_ZOOM_OUT_PRE) || \ | ||
97 | defined(FRACTAL_ZOOM_IN_PRE) || \ | ||
98 | defined(FRACTAL_PRECISION_DEC_PRE) || \ | ||
99 | defined(FRACTAL_PRECISION_INC) | ||
96 | long lastbutton = BUTTON_NONE; | 100 | long lastbutton = BUTTON_NONE; |
101 | #endif | ||
97 | int redraw = REDRAW_FULL; | 102 | int redraw = REDRAW_FULL; |
98 | struct fractal_ops *ops = &mandelbrot_ops; | 103 | struct fractal_ops *ops = &mandelbrot_ops; |
99 | 104 | ||
@@ -246,9 +251,13 @@ enum plugin_status plugin_start(const void* parameter) | |||
246 | exit_on_usb(button); | 251 | exit_on_usb(button); |
247 | break; | 252 | break; |
248 | } | 253 | } |
249 | 254 | #if defined(FRACTAL_ZOOM_OUT_PRE) || \ | |
255 | defined(FRACTAL_ZOOM_IN_PRE) || \ | ||
256 | defined(FRACTAL_PRECISION_DEC_PRE) || \ | ||
257 | defined(FRACTAL_PRECISION_INC) | ||
250 | if (button != BUTTON_NONE) | 258 | if (button != BUTTON_NONE) |
251 | lastbutton = button; | 259 | lastbutton = button; |
260 | #endif | ||
252 | } | 261 | } |
253 | return PLUGIN_OK; | 262 | return PLUGIN_OK; |
254 | } | 263 | } |