diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-05-13 10:37:33 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-05-13 10:37:33 -0500 |
commit | 06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4 (patch) | |
tree | 6c165950434f3c688b26aef2d53f31df1a115985 /src/editorui | |
parent | e037c2d4256e2975e50d00517526794dff444f0d (diff) | |
download | koopatlas-06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4.tar.gz koopatlas-06c6ea9b11837d32b47dfe2807e3fc83eb80c9a4.zip |
Added Delay offset, made Y scale begin from bottom coords rather than top, some fixes
Diffstat (limited to 'src/editorui')
-rw-r--r-- | src/editorui/editormain.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py index 263c547..3d2f17d 100644 --- a/src/editorui/editormain.py +++ b/src/editorui/editormain.py @@ -353,7 +353,11 @@ class KPMapScene(QtGui.QGraphicsScene): posRect.setWidth(posRect.width()*modifier/100.0) elif Type == "Y Scale": - posRect.setHeight(posRect.height()*modifier/100.0) + h = posRect.height() + posRect.setHeight(h*modifier/100.0) + + new = h - posRect.height() + posRect.adjust(0, new, 0, new) elif Type == "Opacity": painter.setOpacity(modifier/100.0) |