1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Teruaki Kawashima 2010-01-21 12:27:07 +00:00
parent 7ebde8503b
commit e0dfa22cad
3 changed files with 7 additions and 4 deletions

View file

@ -21,10 +21,6 @@
#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

View file

@ -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 */

View file

@ -20,6 +20,7 @@
* KIND, either express or implied.
*
****************************************************************************/
#include "fractal_sets.h"
#include "mandelbrot_set.h"
#define BUTTON_YIELD_TIMEOUT (HZ / 4)