mirror of
https://github.com/open-goal/jak-project
synced 2026-05-24 07:11:15 -04:00
b6649d2433
Prior to SDL3, borderless windows were kinda a hack, they cleaned all of that up. The side-effect of that is that the C++ code keeps track of the current window size (it does this for framebuffer sizing, but also to set the size of the window). This is now an issue because SDL is properly firing events when you change to borderless mode, so our window size gets updated to the size of the entire monitor. When you switch to windowed mode from borderless, it now seems like it didn't work (it did, its just still taking up the entire screen). This could be better cleaned up if more settings are extracted out of GOAL and put into C++ so they can be managed and accessed where they belong. But for now, this is a minimally invasive fix. Fixes #3917