1
0
Fork 0
forked from len0rd/rockbox

Fractals: Prevent zooming more than deepest possible zoom

This prevent the mandelbrost set from being trashed if zooming too much


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24264 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-01-17 21:15:56 +00:00
parent 5b94d44cc0
commit ab450a81ec
3 changed files with 25 additions and 12 deletions

View file

@ -47,7 +47,7 @@ struct fractal_ops
int (*calc)(struct fractal_rect *rect, int (*button_yield_cb)(void *ctx),
void *button_yield_ctx);
void (*move)(int dx, int dy);
void (*zoom)(int factor);
int (*zoom)(int factor);
int (*precision)(int d);
};