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/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=e9f79475908e1e8b0de29edf00f95a1fd3f80e7d;hp=9d6524836b1f571761735f0a154b0b8bb8936cfc --- 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;