From 9d6524836b1f571761735f0a154b0b8bb8936cfc Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 16:26:43 +0800 Subject: [PATCH] --- scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 55b1856..c41dafb 100644 --- a/scene.c +++ b/scene.c @@ -122,6 +122,7 @@ void processObjectEvents(int id) { void processTextureEvents(int id) { if ( curObject >= 0 ) { sceneObjs[curObject].texture.id = id; + sceneObjs[curObject].texture.scale = 1; glutPostRedisplay(); } } @@ -279,7 +280,7 @@ void motion(int x, int y) { // h: texture scale float max = (float)height/texscaleFactor; - float scaling = (diffy + max) / max; + float scaling = (-diffy + max) / max; sceneObjs[curObject].texture.scale *= scaling; } -- 2.20.1