From 4794891c971dd546e279ac928a1fcba837df7a09 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Fri, 15 Jan 2010 06:17:56 +0000 Subject: Fractals: Fix red - Define painting buffer inside fractal set implementation - Add missing USEGLIB define - Removed mandelbrot.c that was forgotten in last commit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24231 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fractals/fractal.c | 3 --- apps/plugins/fractals/fractal_sets.h | 6 ------ apps/plugins/fractals/mandelbrot_set.c | 7 +++++++ 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'apps/plugins/fractals') 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 @@ GREY_INFO_STRUCT static unsigned char *gbuf; static size_t gbuf_size = 0; -unsigned char imgbuffer[LCD_HEIGHT]; -#else -fb_data imgbuffer[LCD_HEIGHT]; #endif #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 @@ #include "lib/grey.h" #include "lib/xlcd.h" -#ifdef USEGSLIB -extern unsigned char imgbuffer[LCD_HEIGHT]; -#else -extern fb_data imgbuffer[LCD_HEIGHT]; -#endif - struct fractal_rect { 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 @@ #define BUTTON_YIELD_TIMEOUT (HZ / 4) +#ifdef USEGSLIB +unsigned char imgbuffer[LCD_HEIGHT]; +#else +fb_data imgbuffer[LCD_HEIGHT]; +#endif + /* 8 entries cyclical, last entry is black (convergence) */ #ifdef HAVE_LCD_COLOR static const fb_data color[9] = { @@ -55,6 +61,7 @@ static const unsigned char color[9] = { #endif #if (LCD_DEPTH < 8) +#define USEGLIB #else #define UPDATE_FREQ (HZ/50) #endif -- cgit v1.2.3