From: Ash Tyndall Date: Sat, 22 Oct 2011 02:28:39 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=fdc6eb90410f851b32b6d84135791c5df51393d9 --- diff --git a/scene.c b/scene.c index b684583..6cf7cf5 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 ) / ( (float)height ); + float scaling = ( diff + (float)height/bigsmallFactor ) / ( (float)height/bigsmallFactor ); sceneObjs[curObject].scale[0] *= scaling; sceneObjs[curObject].scale[1] *= scaling;