summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/fractals/fractal.h4
-rw-r--r--apps/plugins/fractals/fractal_sets.h6
-rw-r--r--apps/plugins/fractals/mandelbrot_set.c1
3 files changed, 7 insertions, 4 deletions
diff --git a/apps/plugins/fractals/fractal.h b/apps/plugins/fractals/fractal.h
index 6c0af22..cac0df4 100644
--- a/apps/plugins/fractals/fractal.h
+++ b/apps/plugins/fractals/fractal.h
@@ -21,10 +21,6 @@
#ifndef _FRACTAL_H
#define _FRACTAL_H
-#if (LCD_DEPTH < 8)
-#define USEGSLIB
-#endif
-
/* variable button definitions */
#if CONFIG_KEYPAD == RECORDER_PAD
#define FRACTAL_QUIT BUTTON_OFF
diff --git a/apps/plugins/fractals/fractal_sets.h b/apps/plugins/fractals/fractal_sets.h
index 3b5e3c7..b2eaa58 100644
--- a/apps/plugins/fractals/fractal_sets.h
+++ b/apps/plugins/fractals/fractal_sets.h
@@ -21,8 +21,14 @@
#ifndef _FRACTAL_SETS_H
#define _FRACTAL_SETS_H
+#include "plugin.h"
+
+#if (LCD_DEPTH < 8)
+#define USEGSLIB
#include "lib/grey.h"
+#else
#include "lib/xlcd.h"
+#endif
#define DELTA 8 /* Panning moves 1/DELTA of screen */
diff --git a/apps/plugins/fractals/mandelbrot_set.c b/apps/plugins/fractals/mandelbrot_set.c
index 013b462..85f1b4b 100644
--- a/apps/plugins/fractals/mandelbrot_set.c
+++ b/apps/plugins/fractals/mandelbrot_set.c
@@ -20,6 +20,7 @@
* KIND, either express or implied.
*
****************************************************************************/
+#include "fractal_sets.h"
#include "mandelbrot_set.h"
#define BUTTON_YIELD_TIMEOUT (HZ / 4)