From da41706f650bee77b0652536528ef637783b6579 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Fri, 15 Jan 2010 11:48:21 +0000 Subject: Fractals: Fix yellow - Have USEGSLIB be defined in fractals.h - BTW the plugin name was renamed to fractals from mandelbrot, because it now provide the basis to use other fractals set, such as the Julia set. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24235 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fractals/mandelbrot_set.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (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 077858d24f..fdd741d658 100644 --- a/apps/plugins/fractals/mandelbrot_set.c +++ b/apps/plugins/fractals/mandelbrot_set.c @@ -25,9 +25,9 @@ #define BUTTON_YIELD_TIMEOUT (HZ / 4) #ifdef USEGSLIB -unsigned char imgbuffer[LCD_HEIGHT]; +static unsigned char imgbuffer[LCD_HEIGHT]; #else -fb_data imgbuffer[LCD_HEIGHT]; +static fb_data imgbuffer[LCD_HEIGHT]; #endif /* 8 entries cyclical, last entry is black (convergence) */ @@ -60,9 +60,7 @@ static const unsigned char color[9] = { #define MB_XFAC (MB_YFAC*LCD_WIDTH/MB_HEIGHT) #endif -#if (LCD_DEPTH < 8) -#define USEGSLIB -#else +#ifndef USEGSLIB #define UPDATE_FREQ (HZ/50) #endif -- cgit v1.2.3