I get an issue when using OpenGL in window mode.
Once i resize the window the focus of the game is lost. Even worse is that it's not cured on switching back to fullscreen.
On desktop we render directly to the default framebuffer (either a window or the full screen), no FBO is involved.
As the native resolution of the games are fixed, there is no reason to allow resizing.
There is also no code path that calls SDL_CreateWindow with the SDL_RESIZABLE flag, so the answer is a solid "no" on all fronts.
Botje wrote:On desktop we render directly to the default framebuffer (either a window or the full screen), no FBO is involved.
As the native resolution of the games are fixed, there is no reason to allow resizing.
There is also no code path that calls SDL_CreateWindow with the SDL_RESIZABLE flag, so the answer is a solid "no" on all fronts.
Thanks a lot.
So, window should be permitted entirely from being resized, did i get that right?
Is that done in residualvm or must SDL take care of?
Botje wrote:
I do not think resizing the window does something useful on the other platforms, so maybe we should disable it altogether.
I thought so too, but didn't want to change it for all other platforms, since there might have been some other code that deals with them which i wasn't aware of.
I ill adapt the PR. (edit: done)
p.s. i don't know if a comment should be placed there, feel free to add one, if necessary.