mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-08 15:35:50 +01:00
Merge bc51d937f348cb884dfb702b7e5f7522cdda51f2 into a1af3c1a59fe81f7a1cac10dcead0a383b99f245
This commit is contained in:
commit
1732dbaf86
@ -900,7 +900,13 @@ static void ImGui_ImplSDL2_GetWindowSizeAndFramebufferScale(SDL_Window* window,
|
||||
{
|
||||
int w, h;
|
||||
int display_w, display_h;
|
||||
SDL_GetWindowSize(window, &w, &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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user