drawing-area: allow zooming from 8px to 32px, using unique graphics source for each level
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@756 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
ee449d59a4
commit
1ce5080705
3 changed files with 18 additions and 7 deletions
|
@ -996,7 +996,7 @@ public class MainWindow extends JFrame
|
|||
|
||||
int oldZoom = drawingArea.getTileSize();
|
||||
int newZoom = zoomOut ? (oldZoom / 2) : (oldZoom * 2);
|
||||
if (newZoom < 16) { newZoom = 16; }
|
||||
if (newZoom < 8) { newZoom = 8; }
|
||||
if (newZoom > 32) { newZoom = 32; }
|
||||
|
||||
if (oldZoom != newZoom)
|
||||
|
|
Reference in a new issue