diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-17 21:15:56 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-01-17 21:15:56 +0000 |
commit | ab450a81ec1d81d3ea92a5b14edd2265fc2227ea (patch) | |
tree | c6aa4d9bf18ec2b6558f18c82b6c213f9d87053a /apps/plugins/fractals/fractal.c | |
parent | 5b94d44cc0b0bc7caceafff60131b633cc45c6bc (diff) | |
download | rockbox-ab450a81ec1d81d3ea92a5b14edd2265fc2227ea.tar.gz rockbox-ab450a81ec1d81d3ea92a5b14edd2265fc2227ea.zip |
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
Diffstat (limited to 'apps/plugins/fractals/fractal.c')
-rw-r--r-- | apps/plugins/fractals/fractal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c index aa8f39853c..7543963ded 100644 --- a/apps/plugins/fractals/fractal.c +++ b/apps/plugins/fractals/fractal.c | |||
@@ -167,8 +167,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
167 | if (lastbutton != FRACTAL_ZOOM_OUT_PRE) | 167 | if (lastbutton != FRACTAL_ZOOM_OUT_PRE) |
168 | break; | 168 | break; |
169 | #endif | 169 | #endif |
170 | ops->zoom(-1); | 170 | if (!ops->zoom(-1)) |
171 | redraw = REDRAW_FULL; | 171 | redraw = REDRAW_FULL; |
172 | break; | 172 | break; |
173 | 173 | ||
174 | 174 | ||
@@ -180,8 +180,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
180 | #ifdef FRACTAL_ZOOM_IN2 | 180 | #ifdef FRACTAL_ZOOM_IN2 |
181 | case FRACTAL_ZOOM_IN2: | 181 | case FRACTAL_ZOOM_IN2: |
182 | #endif | 182 | #endif |
183 | ops->zoom(1); | 183 | if (!ops->zoom(1)) |
184 | redraw = REDRAW_FULL; | 184 | redraw = REDRAW_FULL; |
185 | break; | 185 | break; |
186 | 186 | ||
187 | case FRACTAL_UP: | 187 | case FRACTAL_UP: |