This commit is contained in:
Sky Leite 2026-09-25 22:01:47 +09:00 • committed by GitHub
commit f2337fdf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -900,7 +900,13 @@ static void ImGui_ImplSDL2_GetWindowSizeAndFramebufferScale(SDL_Window* window,
{
int w, h;
int display_w, display_h;
SDL_RenderGetLogicalSize(renderer, &w, &h);
if (w == 0 || h == 0)
{ // GetLogicalSize returns 0, 0 when it is unset
SDL_GetWindowSize(window, &w, &h);
}
if (SDL_GetWindowFlags(window) & SDL_WINDOW_MINIMIZED)
w = h = 0;
if (renderer != nullptr)