File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 44* Add ` SDL.Exception ` module, exposing ` SDLException `
55* Add joystick POV hat support
66* Remove deprecated ` InitEverything ` enumeration
7+ * Fix issue with ` setWindowMode ` transitions not working properly between
8+ fullscreen and windowed modes.
79
8102.1.3.1
911=======
Original file line number Diff line number Diff line change @@ -265,11 +265,11 @@ setWindowMode :: MonadIO m => Window -> WindowMode -> m ()
265265setWindowMode (Window w) mode =
266266 liftIO . throwIfNot0_ " SDL.Video.setWindowMode" " SDL_SetWindowFullscreen" $
267267 case mode of
268- Fullscreen -> Raw. setWindowFullscreen w Raw. SDL_WINDOW_FULLSCREEN
269- FullscreenDesktop -> Raw. setWindowFullscreen w Raw. SDL_WINDOW_FULLSCREEN_DESKTOP
268+ Fullscreen -> Raw. setWindowFullscreen w Raw. SDL_WINDOW_FULLSCREEN <* Raw. raiseWindow w
269+ FullscreenDesktop -> Raw. setWindowFullscreen w Raw. SDL_WINDOW_FULLSCREEN_DESKTOP <* Raw. raiseWindow w
270270 Maximized -> Raw. setWindowFullscreen w 0 <* Raw. maximizeWindow w
271271 Minimized -> Raw. minimizeWindow w >> return 0
272- Windowed -> Raw. restoreWindow w >> return 0
272+ Windowed -> Raw. setWindowFullscreen w 0 <* Raw. restoreWindow w
273273
274274-- | Set the position of the window.
275275setWindowPosition :: MonadIO m => Window -> WindowPosition -> m ()
You can’t perform that action at this time.
0 commit comments