From 6d1e2a49ce7bcb72838bce2b7962d20570dfa84e Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 09:42:12 +0800 Subject: [PATCH] --- scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 9e3cb2d..fa90a18 100644 --- a/scene.c +++ b/scene.c @@ -311,7 +311,7 @@ void motion(int x, int y) { float scaling; if ( diff < 0 ) { - scaling = (diff - (float)-height)/(0 - (float)-height); + scaling = (diff - -((float)height/2))/(0 - -((float)height/2)); } else { scaling = diff; } @@ -322,6 +322,7 @@ void motion(int x, int y) { sceneObjs[curObject].scale[2] += scaling; } + starty = y; startx = x; break; -- 2.20.1