aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pugl_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pugl_test.c b/test/pugl_test.c
index 57b86cf..ba25757 100644
--- a/test/pugl_test.c
+++ b/test/pugl_test.c
@@ -266,8 +266,8 @@ onEvent(PuglView* view, const PuglEvent* event)
onKeyPress(view, &event->key, "Child: ");
break;
case PUGL_MOTION_NOTIFY:
- app->xAngle = fmod(app->xAngle - event->motion.x - app->lastMouseX, 360.0);
- app->yAngle = fmod(app->yAngle + event->motion.y - app->lastMouseY, 360.0);
+ app->xAngle -= event->motion.x - app->lastMouseX;
+ app->yAngle += event->motion.y - app->lastMouseY;
app->lastMouseX = event->motion.x;
app->lastMouseY = event->motion.y;
puglPostRedisplay(view);