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/mandelbrot_set.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/plugins/fractals/mandelbrot_set.c') 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