forked from len0rd/rockbox
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
This commit is contained in:
parent
12173598e4
commit
da41706f65
3 changed files with 8 additions and 7 deletions
|
|
@ -30,8 +30,7 @@
|
||||||
#include "fractal_sets.h"
|
#include "fractal_sets.h"
|
||||||
#include "mandelbrot_set.h"
|
#include "mandelbrot_set.h"
|
||||||
|
|
||||||
#if (LCD_DEPTH < 8)
|
#ifdef USEGSLIB
|
||||||
#define USEGSLIB
|
|
||||||
#define MYLCD(fn) grey_ub_ ## fn
|
#define MYLCD(fn) grey_ub_ ## fn
|
||||||
#define MYLCD_UPDATE()
|
#define MYLCD_UPDATE()
|
||||||
#define MYXLCD(fn) grey_ub_ ## fn
|
#define MYXLCD(fn) grey_ub_ ## fn
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@
|
||||||
#ifndef _FRACTAL_H
|
#ifndef _FRACTAL_H
|
||||||
#define _FRACTAL_H
|
#define _FRACTAL_H
|
||||||
|
|
||||||
|
#if (LCD_DEPTH < 8)
|
||||||
|
#define USEGSLIB
|
||||||
|
#endif
|
||||||
|
|
||||||
/* variable button definitions */
|
/* variable button definitions */
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if CONFIG_KEYPAD == RECORDER_PAD
|
||||||
#define FRACTAL_QUIT BUTTON_OFF
|
#define FRACTAL_QUIT BUTTON_OFF
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@
|
||||||
#define BUTTON_YIELD_TIMEOUT (HZ / 4)
|
#define BUTTON_YIELD_TIMEOUT (HZ / 4)
|
||||||
|
|
||||||
#ifdef USEGSLIB
|
#ifdef USEGSLIB
|
||||||
unsigned char imgbuffer[LCD_HEIGHT];
|
static unsigned char imgbuffer[LCD_HEIGHT];
|
||||||
#else
|
#else
|
||||||
fb_data imgbuffer[LCD_HEIGHT];
|
static fb_data imgbuffer[LCD_HEIGHT];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* 8 entries cyclical, last entry is black (convergence) */
|
/* 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)
|
#define MB_XFAC (MB_YFAC*LCD_WIDTH/MB_HEIGHT)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (LCD_DEPTH < 8)
|
#ifndef USEGSLIB
|
||||||
#define USEGSLIB
|
|
||||||
#else
|
|
||||||
#define UPDATE_FREQ (HZ/50)
|
#define UPDATE_FREQ (HZ/50)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue