Skip to content

Commit

Permalink
Examples: SDL: Fixed usage of SDL_GetDisplayDPI (#2137, #1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
eclbtownsend authored and ocornut committed Oct 18, 2018
1 parent 69db792 commit 5f79a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/imgui_impl_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f79a28

Please sign in to comment.