X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=6cf7cf5becd5856ffb84e550fca0b67457eef299;hp=b684583d0097f5d940095a8213f3db331ba8eccf;hb=fdc6eb90410f851b32b6d84135791c5df51393d9;hpb=d58903b333042e04555f09bcab7b21231a48f793 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;