mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-22 07:36:35 +00:00
parent
69db792bf0
commit
5f79a28a07
@ -523,7 +523,7 @@ static void ImGui_ImplSDL2_UpdateMonitors()
|
|||||||
#endif
|
#endif
|
||||||
#if SDL_HAS_PER_MONITOR_DPI
|
#if SDL_HAS_PER_MONITOR_DPI
|
||||||
float dpi = 0.0f;
|
float dpi = 0.0f;
|
||||||
if (SDL_GetDisplayDPI(n, &dpi, NULL, NULL))
|
if (!SDL_GetDisplayDPI(n, &dpi, NULL, NULL))
|
||||||
monitor.DpiScale = dpi / 96.0f;
|
monitor.DpiScale = dpi / 96.0f;
|
||||||
#endif
|
#endif
|
||||||
platform_io.Monitors.push_back(monitor);
|
platform_io.Monitors.push_back(monitor);
|
||||||
|
Loading…
Reference in New Issue
Block a user