[Ohrrpgce] SVN: teeemcee/12430 gfx_sdl2: workaround possible unexitable fullscreen problem on Windows i

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Sun Sep 12 04:45:39 PDT 2021


teeemcee
2021-09-12 04:45:36 -0700 (Sun, 12 Sep 2021)
813
gfx_sdl2: workaround possible unexitable fullscreen problem on Windows in Custom

On Windows (both XP and 10), if the window client area is the same (or nearly
the same) size as the display and is centered and active, Windows will display
it above the taskbar -- the same as "desktop fullscreen".  This doesn't seem to
be SDL's doing.  Since additionally the window size doesn't get restored when
leaving fullscreen, unlike other OSes (and is maximised when fullscreened), you
become stuck fullscreened!  (To reproduce: run Custom, fullscreen, exit
fullscreen, then change window zoom in F9, which causes a window recentering if
this workaround is disabled.)

This is a very conservative fix for this issue, by simply not recentering
the window if it's as large as the display.

(Copied from r12423 on wip branch)
---
U   rel/hrodvitnir/gfx_sdl2.bas



More information about the Ohrrpgce mailing list