mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03:00
Merge bc51d937f3 into aa0181478b
This commit is contained in:
commit
f2337fdf35
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue