From ab450a81ec1d81d3ea92a5b14edd2265fc2227ea Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Sun, 17 Jan 2010 21:15:56 +0000 Subject: 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 --- apps/plugins/fractals/fractal_sets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 a41de45c14..3b5e3c7856 100644 --- a/apps/plugins/fractals/fractal_sets.h +++ b/apps/plugins/fractals/fractal_sets.h @@ -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); }; -- cgit