mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-22 01:54:21 +00:00
parent
69db792bf0
commit
5f79a28a07
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ static void ImGui_ImplSDL2_UpdateMonitors()
|
|||
#endif
|
||||
#if SDL_HAS_PER_MONITOR_DPI
|
||||
float dpi = 0.0f;
|
||||
if (SDL_GetDisplayDPI(n, &dpi, NULL, NULL))
|
||||
if (!SDL_GetDisplayDPI(n, &dpi, NULL, NULL))
|
||||
monitor.DpiScale = dpi / 96.0f;
|
||||
#endif
|
||||
platform_io.Monitors.push_back(monitor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue