X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=d9a4ea3be32f39ed4ab99b5a8cb52c6971cabe3c;hp=f544aae31b44e48429ed9b49ac039f02a95c709b;hb=ddf25313dfc93155b958b2838b6dba330e2706d9;hpb=6f9b6e0830f4b8e12dbbbdbbdd2c0678bc2bf6a2 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();