dhewm3/neo/sys
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
..
aros dhewm3log.txt for AROS 2022-01-16 06:12:51 +01:00
cmake Use stb_vorbis instead of libogg and libvorbis(file) 2021-04-27 20:08:59 +02:00
linux POSIX: log output to save_path/dhewm3log.txt 2022-01-16 06:11:20 +01:00
osx Make it build and work on old PPC Macs again (#568) 2024-03-27 01:04:11 +01:00
posix POSIX: log output to save_path/dhewm3log.txt 2022-01-16 06:11:20 +01:00
stub Add glimpParms_t GLimp_GetCurState() to get current window state 2024-06-12 22:26:30 +02:00
win32 Fixup: typo: 'hiehgt' -> 'height' in a few places around the codebase 2023-02-04 19:34:29 +01:00
cpu.cpp Fix sys/cpu.cpp for msvc 64bit 2012-07-06 01:06:59 +02:00
doom_icon.h Window Icon, make in_nograb work with SDL2 2015-03-02 00:03:30 +01:00
events.cpp Implement GLimp_SetScreenParms() for "vid_restart partial" 2024-06-11 16:45:34 +02:00
glimp.cpp Make fullscreen mode with XWayland a bit less broken, #587 2024-07-03 01:01:16 +02:00
imgui_savestyle.cpp Adjust imgui_savestyle.cpp for 1.90.8 2024-06-06 20:07:30 +02:00
platform.h Don't use GCC's __builtin_alloca_with_align(), fix #572 2024-04-19 07:24:32 +02:00
proggyvector_font.h ImGui: Improve integration, use scalable font, Control Options menu 2024-05-22 19:46:38 +02:00
sys_imgui.cpp Store imgui.ini and user.imstyle in dhewm3 config dir instead of $PWD 2024-06-04 10:52:30 +02:00
sys_imgui.h Dhewm3SettingsMenu: Improve cursor handling and opening menu ingame 2024-05-28 04:49:24 +02:00
sys_local.cpp Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_local.h Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_public.h Some functions that will be used by the ImGui keybinding menu 2024-05-22 19:46:38 +02:00
threads.cpp Fix SDL1.2 build and type of xthreadInfo::threadId 2023-01-16 03:22:01 +01:00