You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0 Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2013-08-23 07:01:21 +0000, Alex Szpakowski wrote:
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN) will fail (but return 0 for success) if the current state of the window is SDL_WINDOW_FULLSCREEN_DESKTOP.
The reverse is true as well: SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP) will fail (but return success) if the state of the window is currently SDL_WINDOW_FULLSCREEN.
In both cases SDL changes some internal state of the window before it fails to properly set the fullscreen mode, so the window's state gets messed up which causes unexpected things to happen.
The reason this seems to happen is this: SDL_SetWindowFullscreen calls SDL_UpdateFullscreenMode after setting the window's flags to the new fullscreen state, but SDL_UpdateFullscreenMode will early return if fullscreen is requested and the window is already in some type of fullscreen (doesn't matter whether it's normal display-mode or desktop fullscreen.)
So the window's flags get set to the new fullscreen state but the state never actually gets applied.
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0
Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2013-08-23 07:01:21 +0000, Alex Szpakowski wrote:
On 2013-08-23 07:47:43 +0000, Sam Lantinga wrote:
On 2014-01-15 19:20:02 +0000, (disabled) Jørgen Tjernø wrote:
On 2016-03-19 05:03:16 +0000, Alex Szpakowski wrote:
The text was updated successfully, but these errors were encountered: