X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=ba115c38b073014342eccdac08bb3f82f078a372;hp=74e79a7328607479e2923944c5990a65b87c3e64;hb=5f4da2e97f7d31c4980837be823a1297f6e3b657;hpb=4bceef28c8187fdff231fe2bc03fd3da6b7adb4b diff --git a/scene.c b/scene.c index 74e79a7..ba115c3 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 ); + float scaling = ( diff + (float)height/2 ) / ( (float)height/2 ) * bigsmallFactor; sceneObjs[curObject].scale[0] *= scaling; sceneObjs[curObject].scale[1] *= scaling;