Skip to content

Instantly share code, notes, and snippets.

@vydd
Created January 11, 2016 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vydd/eb888d6873df6c64c0b2 to your computer and use it in GitHub Desktop.
Save vydd/eb888d6873df6c64c0b2 to your computer and use it in GitHub Desktop.
(defun set-window-fullscreen (win fullscreen-p &optional desktop-p)
(let ((fs (if fullscreen-p
(if desktop-p
sdl2-ffi:+SDL-WINDOW-FULLSCREEN-DESKTOP+
sdl2-ffi:+SDL-WINDOW-FULLSCREEN+)
0)))
(check-rc (sdl-set-window-fullscreen win fs))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment