From c721e772ebfd5bae455e30616551c654834767ca Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 09:16:12 +0800 Subject: [PATCH 1/1] --- scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene.c b/scene.c index ad7e4bf..a706c5e 100644 --- a/scene.c +++ b/scene.c @@ -305,7 +305,7 @@ void motion(int x, int y) { //sceneObjs[curObject].x += (x - startx)*leftrightFactor; } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small, h: up/down - float scaling = (y - starty)*bigsmallFactor; + float scaling = y*bigsmallFactor; printf("Scaling by %f on all axii\n", scaling); sceneObjs[curObject].scale[0] += scaling; sceneObjs[curObject].scale[1] += scaling; -- 2.20.1