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:
parent
5b94d44cc0
commit
ab450a81ec
3 changed files with 25 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue