summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-04-21 20:08:26 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-04-21 20:11:21 -0400
commit9d18f0b8e8389ff2e44a710960b3d7406035746b (patch)
tree97561dadff683e421e51f39dfa4df9e13f758438
parent649fe208ca96891faf249b7fb0a884a5d9d40b58 (diff)
Invert Y coordinate in mouse motion event.
Reported-By: Christopher Howard <christopher.howard@qlfiles.net> * chickadee.scm (run-game): Invert the Y coordinate received from SDL's mouse motion event.
-rw-r--r--chickadee.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee.scm b/chickadee.scm
index f847915..3e9a4dc 100644
--- a/chickadee.scm
+++ b/chickadee.scm
@@ -120,7 +120,7 @@
((mouse-motion-event? event)
(run-hook mouse-move-hook
(mouse-motion-event-x event)
- (mouse-motion-event-y event)
+ (invert-y (mouse-motion-event-y event))
(mouse-motion-event-x-rel event)
(- (mouse-motion-event-y-rel event))
(mouse-motion-event-buttons event)))