dhewm3/neo
Daniel Gibson 5c7aacb954 Make fullscreen mode with XWayland a bit less broken, #587
assert( ret.width == glConfig.winWidth
        && ret.height == glConfig.winHeight );

in GLimp_GetCurState() triggered, because SDL_GetWindowSize(),
which was used to set glConfig.winWidth/Height in
GLimp_UpdateWindowSize(), returned different values than
SDL_GetWindowDisplayMode().
Now use SDL_GetWindowDisplayMode() in GLimp_UpdateWindowSize() so it's
at least consistent.

However it seems like SDL_GetWindowSize() returns the correct values
(IN THAT CASE), because with this change the mouse cursor doesn't work
that well (in the specific case described above).
In the end this is an SDL or Wayland bug or something, and I can only
recommend not using "real" fullscreen mode with Wayland, as it's fake
anyway (Wayland doesn't allow switching the display resolution, so
you get a magically scaled borderless fullscreen window at best)
2024-07-03 01:01:16 +02:00
..
cm Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +01:00
d3xp Initialize variabls ubsan complained about 2024-03-20 18:32:26 +01:00
framework Dhewm3SettingsMenu: Rework resolution/windowed/MSAA part of Video Options 2024-06-12 22:47:43 +02:00
game Make Sys_SetInteractiveIngameGuiActive() work better 2024-03-17 04:03:27 +01:00
idlib Add some functions to handle UTF-8 strings 2024-06-02 13:14:30 +02:00
libs/imgui Update Dear ImGui to 1.90.8 2024-06-06 20:05:54 +02:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Add glimpParms_t GLimp_GetCurState() to get current window state 2024-06-12 22:26:30 +02:00
sound Always optimize code of some integrated libraries, even in Debug builds 2024-06-05 21:40:59 +02:00
sys Make fullscreen mode with XWayland a bit less broken, #587 2024-07-03 01:01:16 +02:00
tools Fixup: typo: 'hiehgt' -> 'height' in a few places around the codebase 2023-02-04 19:34:29 +01:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui HighDPI support, hopefully 2024-06-03 14:49:23 +02:00
CMakeLists.txt Always optimize code of some integrated libraries, even in Debug builds 2024-06-05 21:40:59 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00