From: Ash Tyndall Date: Fri, 21 Oct 2011 02:56:54 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ddf25313dfc93155b958b2838b6dba330e2706d9;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index f544aae..d9a4ea3 100644 --- a/scene.c +++ b/scene.c @@ -256,8 +256,8 @@ void keyboard(unsigned char key, int x, int y) { */ void motion(int x, int y) { if (moving) { - zoomFactor += (x - startx); - rotateFactor += (y - starty); + zoomFactor += (y - starty); + rotateFactor += (x - startx); startx = x; starty = y; glutPostRedisplay();