forked from len0rd/rockbox
Fractals: Use constants for screen panning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
51cb7eb5f2
commit
55240a2e85
3 changed files with 10 additions and 4 deletions
|
|
@ -24,6 +24,14 @@
|
|||
#include "lib/grey.h"
|
||||
#include "lib/xlcd.h"
|
||||
|
||||
#define DELTA 8 /* Panning moves 1/DELTA of screen */
|
||||
|
||||
#define LCD_SHIFT_X (LCD_WIDTH / DELTA)
|
||||
#define LCD_SHIFT_Y (LCD_HEIGHT / DELTA)
|
||||
|
||||
#define X_DELTA(x) (((x) * LCD_WIDTH) / DELTA)
|
||||
#define Y_DELTA(y) (((y) * LCD_HEIGHT) / DELTA)
|
||||
|
||||
struct fractal_rect
|
||||
{
|
||||
int px_min;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue