From: Ash Tyndall Date: Sat, 22 Oct 2011 02:27:12 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d58903b333042e04555f09bcab7b21231a48f793;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index ba115c3..b684583 100644 --- a/scene.c +++ b/scene.c @@ -308,7 +308,7 @@ void motion(int x, int y) { // For big/small scaling, we map negative numbers to 0->1 and positive numbers to 1->inf float diff = (x - startx); - float scaling = ( diff + (float)height/2 ) / ( (float)height/2 ) * bigsmallFactor; + float scaling = ( diff + (float)height ) / ( (float)height ); sceneObjs[curObject].scale[0] *= scaling; sceneObjs[curObject].scale[1] *= scaling;