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/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=ddf25313dfc93155b958b2838b6dba330e2706d9;hp=6f9b6e0830f4b8e12dbbbdbbdd2c0678bc2bf6a2;ds=inline --- 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();