window: Allow unspecified and centered window positions.
authorDavid Thompson <dthompson2@worcester.edu>
Tue, 22 Dec 2015 19:05:58 +0000 (14:05 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Tue, 22 Dec 2015 19:05:58 +0000 (14:05 -0500)
commitad2a71bd5d6d984fc72a5474c55c7fb052cd694c
tree5d6a1de87aac9eff2f09631339fb9dda0d3607cc
parentcf606558b6aa6864ed94134e98d45fc06d110911
window: Allow unspecified and centered window positions.

* sdl2/bindings.scm (SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_UNDEFINED):
  New variables.
* sdl2/video.scm (make-window): Accept #f and 'center' as valid
  coordinates for undefined and centered positioning, respectively.  Use
  an undefined position by default.
sdl2/bindings.scm
sdl2/video.scm