diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-15 06:17:56 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-15 06:17:56 +0000 |
| commit | 4794891c971dd546e279ac928a1fcba837df7a09 (patch) | |
| tree | 88c5cd0a6377757b1040f16f11bf3bc0513ffd2c /apps/plugins/fractals | |
| parent | 7719d297f2a1da0e45fd39cad21e99e23fd695c8 (diff) | |
| download | rockbox-4794891c971dd546e279ac928a1fcba837df7a09.zip rockbox-4794891c971dd546e279ac928a1fcba837df7a09.tar.gz rockbox-4794891c971dd546e279ac928a1fcba837df7a09.tar.bz2 rockbox-4794891c971dd546e279ac928a1fcba837df7a09.tar.xz | |
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
Diffstat (limited to 'apps/plugins/fractals')
| -rw-r--r-- | apps/plugins/fractals/fractal.c | 3 | ||||
| -rw-r--r-- | apps/plugins/fractals/fractal_sets.h | 6 | ||||
| -rw-r--r-- | apps/plugins/fractals/mandelbrot_set.c | 7 |
3 files changed, 7 insertions, 9 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c index 3a0c785..a086652 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 c5339d6..2d0ff7d 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 ccc65b8..22f81ea 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 |