From 5f79a28a0789d094bbfce07c986397210d8f865e Mon Sep 17 00:00:00 2001 From: Brandon <35241930+eclbtownsend@users.noreply.github.com> Date: Thu, 18 Oct 2018 01:48:18 -0700 Subject: [PATCH] Examples: SDL: Fixed usage of SDL_GetDisplayDPI (#2137, #1676) --- examples/imgui_impl_sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imgui_impl_sdl.cpp b/examples/imgui_impl_sdl.cpp index f1da2476..2917a421 100644 --- a/examples/imgui_impl_sdl.cpp +++ b/examples/imgui_impl_sdl.cpp @@ -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);