Simpler implementation of stretch-overflow with rotation and alignment.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@734 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-21 17:57:23 +00:00
parent f1fe10462c
commit 69d59eb9e7
2 changed files with 3 additions and 8 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ Rotation::Rotation(int angle, const RealRect& rect, double zoom, double strectch
: angle(constrain_angle(angle))
, size(rect.size())
, origin(rect.position())
, zoomX(zoom * strectch)
, zoomY(zoom)
, zoomX(::sideways(angle) ? zoom : zoom * strectch)
, zoomY(!::sideways(angle) ? zoom : zoom * strectch)
{
if (is_internal) {
size = trNoNeg(size);