summaryrefslogtreecommitdiff
path: root/lib/engine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/engine.cc')
-rw-r--r--lib/engine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/engine.cc b/lib/engine.cc
index 53be179..ac813f9 100644
--- a/lib/engine.cc
+++ b/lib/engine.cc
@@ -162,7 +162,7 @@ void mogltk::engine::pollevents() {
printm(M_INFO, "Mouse slept over the screen - (%i, %i)\n", event.motion.x, event.motion.y);
if (locked) {
if (!((event.motion.x == mx) && (event.motion.y == my))) {
- SDL_WrapMouse(mx, my);
+ SDL_WarpMouse(mx, my);
}
}
if (cursorvisible)