-
Notifications
You must be signed in to change notification settings - Fork 266
Description
sdl2-compat + SDL3 has recently been introduced on Arch (including Manjaro) and Fedora Linux as a replacement for SDL2. Native SDL2 is no longer installed on these distributions by default. However, sdl2-compat + SDL3 provides a compatibility API for SDL2 applications to allow them to continue running. It is expected that sdl2-compat + SDL3 will migrate to other distros over time. See https://github.com/libsdl-org/sdl2-compat.
When trying RBDoom3BFG on Manjaro (Arch) Linux with sdl2-compat + SDL3, there are a few differences. The most noticeable one is the content area does not resize properly when doing a restore (including Alt-Enter) from Borderless Fullscreen to windowed mode. The other is automatic adjustment for window borders when positioning a window, although this is highly dependent on choice of window manager.
The RBDoom3BFG SDL code requires a few minor changes to fix this, and fortunately these changes are compatible with native SDL2, so should be backwards compatible for non sdl2-compat distros (e.g. Debian, etc).
I will submit a PR to fix this.