events: window: Fix parse-window-event.
authorDavid Thompson <dthompson2@worcester.edu>
Thu, 17 Dec 2015 01:45:27 +0000 (20:45 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 17 Dec 2015 01:45:27 +0000 (20:45 -0500)
Good ol' fencepost error strikes again.

* sdl2/events.scm (parse-window-event): Fix off-by-1 error.

sdl2/events.scm

index edb9306..a9d3b98 100644 (file)
                 focus-gained
                 focus-lost
                 close)
-              n))
+              (1- n)))
 
   (define types
     (list uint32  ; type