diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-12-22 14:05:58 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-12-22 14:05:58 -0500 |
commit | ad2a71bd5d6d984fc72a5474c55c7fb052cd694c (patch) | |
tree | 5d6a1de87aac9eff2f09631339fb9dda0d3607cc /sdl2/bindings.scm | |
parent | cf606558b6aa6864ed94134e98d45fc06d110911 (diff) |
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.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r-- | sdl2/bindings.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm index 79fbf92..eb7689e 100644 --- a/sdl2/bindings.scm +++ b/sdl2/bindings.scm @@ -141,6 +141,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES." (define SDL_WINDOW_ALLOW_HIGHDPI #x00002000) (define SDL_WINDOW_MOUSE_CAPTURE #x00004000) +(define-public SDL_WINDOWPOS_CENTERED 805240832) +(define-public SDL_WINDOWPOS_UNDEFINED 536805376) + (define-foreign sdl-create-window '* "SDL_CreateWindow" (list '* int int int int uint32)) |