6db1203f22
Check if we're in the requested mode after the fullscreen window was created. If not: Try to switch again in the requested mode by calling SDL_SetWindowDisplayMode(). If that's successfull set the new window size with SDL_SetWindowSize(). That shouldn't be necessary, at least to SDLs crappy doku, but without the subsequent SDL_GetWindowDisplayMode() call fails with 'Invalid Window'. Use that call to check if we're now in the requested mode. If yes, process. If not abort and trigger the fallback magic. It'll set `r_mode 4` and `vid_fullscreen 0`. Caveat: In the worst case this will switch the display mode 3 times. To create the window, to work around the bug and to set a refresh rate. No problem for flat panels, but my unforgotten Trinitron CRT would have cried in pain. |
||
---|---|---|
doc | ||
src | ||
stuff | ||
.gitignore | ||
CHANGELOG | ||
CMakeLists.txt | ||
LICENSE | ||
Makefile | ||
README.md |
Yamagi Quake II
Yamagi Quake II is an enhanced client for id Software's Quake II with focus on offline and coop gameplay. Both the gameplay and the graphics are unchanged, but many bugs if the last official release were fixed and some nice to have features like widescreen support and a modern OpenGL 3.2 renderer were added. Unlike most other Quake II source ports Yamagi Quake II is fully 64-bit clean. It works perfectly on modern processors and operating systems. Yamagi Quake II runs on nearly all common platforms; including FreeBSD, Linux, OpenBSD, Windows and macOS (experimental).
This code is build upon Icculus Quake II, which itself is based on Quake II 3.21. Yamagi Quake II is released under the terms of the GPL version 2. See the LICENSE file for further information.
Documentation
Before asking any question, read through the documentation! The current version can be found here: doc/01_index.md
Releases
The official releases (including Windows binaries) can be found at our
homepage: https://www.yamagi.org/quake2
Unsupported preview builds for Windows can be found at
https://deponie.yamagi.org/quake2/misc/