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

@ -167,8 +167,8 @@ enum plugin_status plugin_start(const void* parameter)
if (lastbutton != FRACTAL_ZOOM_OUT_PRE)
break;
#endif
ops->zoom(-1);
redraw = REDRAW_FULL;
if (!ops->zoom(-1))
redraw = REDRAW_FULL;
break;
@ -180,8 +180,8 @@ enum plugin_status plugin_start(const void* parameter)
#ifdef FRACTAL_ZOOM_IN2
case FRACTAL_ZOOM_IN2:
#endif
ops->zoom(1);
redraw = REDRAW_FULL;
if (!ops->zoom(1))
redraw = REDRAW_FULL;
break;
case FRACTAL_UP: