From: Ash Tyndall Date: Sat, 22 Oct 2011 08:35:33 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e9f79475908e1e8b0de29edf00f95a1fd3f80e7d;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index c41dafb..aabad99 100644 --- a/scene.c +++ b/scene.c @@ -279,6 +279,7 @@ void motion(int x, int y) { sceneObjs[curObject].rotation.x += diffx * rotateFactor; // h: texture scale + // **NOTE: Seems to be problem with scaling, delayed action float max = (float)height/texscaleFactor; float scaling = (-diffy + max) / max; sceneObjs[curObject].texture.scale *= scaling;