libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
8.58k stars 1.61k forks source link

Does SDL_SetWindowMinimumSize work before creating a renderer? #9736

Closed icculus closed 1 month ago

icculus commented 1 month ago

So this PR to the wiki:

https://github.com/libsdl-org/sdlwiki/pull/142

says:

Calling this function before creating a renderer will have no effect.

This was in reference to SDL2; can someone verify?

(and maybe was this on Wayland, which has some different rules about GUI app lifecycle)

slouken commented 1 month ago

This was a bug where the minimum and maximum size would be lost when recreating the window as OpenGL. It's been fixed in both SDL2 and SDL3.