From e0dfa22cad7dd22e7ab7ac8d0fa2df21e4cedddb Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Thu, 21 Jan 2010 12:27:07 +0000 Subject: Fractals: this should fix bugs on simulator for greyscale LCD targets. * moved #define USEGSLIB to fractal_sets.h and include only needed header file. * include plugin.h so that LCD_DEPTH is defined. * explicitly include fractal_sets.h in mandelbrot_set.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24309 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fractals/fractal_sets.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/fractals/fractal_sets.h') diff --git a/apps/plugins/fractals/fractal_sets.h b/apps/plugins/fractals/fractal_sets.h index 3b5e3c7856..b2eaa589dc 100644 --- a/apps/plugins/fractals/fractal_sets.h +++ b/apps/plugins/fractals/fractal_sets.h @@ -21,8 +21,14 @@ #ifndef _FRACTAL_SETS_H #define _FRACTAL_SETS_H +#include "plugin.h" + +#if (LCD_DEPTH < 8) +#define USEGSLIB #include "lib/grey.h" +#else #include "lib/xlcd.h" +#endif #define DELTA 8 /* Panning moves 1/DELTA of screen */ -- cgit v1.2.3