summaryrefslogtreecommitdiff
path: root/sdl2
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-12-16 20:45:27 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-12-16 20:45:27 -0500
commit5679a233b55f1a6919bc14d54683c1c84bc15652 (patch)
tree462b9205fb1e0981ca045643dde6d14b0daaf9c9 /sdl2
parentf2210cb0e5cb64d43e67868c0bc20c671e72a49d (diff)
events: window: Fix parse-window-event.
Good ol' fencepost error strikes again. * sdl2/events.scm (parse-window-event): Fix off-by-1 error.
Diffstat (limited to 'sdl2')
-rw-r--r--sdl2/events.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl2/events.scm b/sdl2/events.scm
index edb9306..a9d3b98 100644
--- a/sdl2/events.scm
+++ b/sdl2/events.scm
@@ -101,7 +101,7 @@
focus-gained
focus-lost
close)
- n))
+ (1- n)))
(define types
(list uint32 ; type