summaryrefslogtreecommitdiff
path: root/apps/plugins/fractals
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/fractals')
-rw-r--r--apps/plugins/fractals/fractal.c3
-rw-r--r--apps/plugins/fractals/fractal_sets.h6
-rw-r--r--apps/plugins/fractals/mandelbrot_set.c7
3 files changed, 7 insertions, 9 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c
index 3a0c785bdd..a086652647 100644
--- a/apps/plugins/fractals/fractal.c
+++ b/apps/plugins/fractals/fractal.c
@@ -45,9 +45,6 @@
45GREY_INFO_STRUCT 45GREY_INFO_STRUCT
46static unsigned char *gbuf; 46static unsigned char *gbuf;
47static size_t gbuf_size = 0; 47static size_t gbuf_size = 0;
48unsigned char imgbuffer[LCD_HEIGHT];
49#else
50fb_data imgbuffer[LCD_HEIGHT];
51#endif 48#endif
52 49
53#define REDRAW_NONE 0 50#define REDRAW_NONE 0
diff --git a/apps/plugins/fractals/fractal_sets.h b/apps/plugins/fractals/fractal_sets.h
index c5339d63d7..2d0ff7d930 100644
--- a/apps/plugins/fractals/fractal_sets.h
+++ b/apps/plugins/fractals/fractal_sets.h
@@ -24,12 +24,6 @@
24#include "lib/grey.h" 24#include "lib/grey.h"
25#include "lib/xlcd.h" 25#include "lib/xlcd.h"
26 26
27#ifdef USEGSLIB
28extern unsigned char imgbuffer[LCD_HEIGHT];
29#else
30extern fb_data imgbuffer[LCD_HEIGHT];
31#endif
32
33struct fractal_rect 27struct fractal_rect
34{ 28{
35 int px_min; 29 int px_min;
diff --git a/apps/plugins/fractals/mandelbrot_set.c b/apps/plugins/fractals/mandelbrot_set.c
index ccc65b8e91..22f81ea4bb 100644
--- a/apps/plugins/fractals/mandelbrot_set.c
+++ b/apps/plugins/fractals/mandelbrot_set.c
@@ -24,6 +24,12 @@
24 24
25#define BUTTON_YIELD_TIMEOUT (HZ / 4) 25#define BUTTON_YIELD_TIMEOUT (HZ / 4)
26 26
27#ifdef USEGSLIB
28unsigned char imgbuffer[LCD_HEIGHT];
29#else
30fb_data imgbuffer[LCD_HEIGHT];
31#endif
32
27/* 8 entries cyclical, last entry is black (convergence) */ 33/* 8 entries cyclical, last entry is black (convergence) */
28#ifdef HAVE_LCD_COLOR 34#ifdef HAVE_LCD_COLOR
29static const fb_data color[9] = { 35static const fb_data color[9] = {
@@ -55,6 +61,7 @@ static const unsigned char color[9] = {
55#endif 61#endif
56 62
57#if (LCD_DEPTH < 8) 63#if (LCD_DEPTH < 8)
64#define USEGLIB
58#else 65#else
59#define UPDATE_FREQ (HZ/50) 66#define UPDATE_FREQ (HZ/50)
60#endif 67#endif