diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-15 11:48:21 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-15 11:48:21 +0000 |
| commit | da41706f650bee77b0652536528ef637783b6579 (patch) | |
| tree | 57200455a212e23a20aba674aa57878984d38053 /apps/plugins | |
| parent | 12173598e448ce7a7a71694221f8d5e10fc57e66 (diff) | |
| download | rockbox-da41706f650bee77b0652536528ef637783b6579.zip rockbox-da41706f650bee77b0652536528ef637783b6579.tar.gz rockbox-da41706f650bee77b0652536528ef637783b6579.tar.bz2 rockbox-da41706f650bee77b0652536528ef637783b6579.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/fractals/fractal.c | 3 | ||||
| -rw-r--r-- | apps/plugins/fractals/fractal.h | 4 | ||||
| -rw-r--r-- | apps/plugins/fractals/mandelbrot_set.c | 8 |
3 files changed, 8 insertions, 7 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c index a086652..41c06d3 100644 --- a/apps/plugins/fractals/fractal.c +++ b/apps/plugins/fractals/fractal.c @@ -30,8 +30,7 @@ #include "fractal_sets.h" #include "mandelbrot_set.h" -#if (LCD_DEPTH < 8) -#define USEGSLIB +#ifdef USEGSLIB #define MYLCD(fn) grey_ub_ ## fn #define MYLCD_UPDATE() #define MYXLCD(fn) grey_ub_ ## fn diff --git a/apps/plugins/fractals/fractal.h b/apps/plugins/fractals/fractal.h index e1dfd5b..7fbfaa5 100644 --- a/apps/plugins/fractals/fractal.h +++ b/apps/plugins/fractals/fractal.h @@ -21,6 +21,10 @@ #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/mandelbrot_set.c b/apps/plugins/fractals/mandelbrot_set.c index 077858d..fdd741d 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 |