diff --git a/examples/imgui_impl_win32.cpp b/examples/imgui_impl_win32.cpp index 7b60dd1b..f34d8405 100644 --- a/examples/imgui_impl_win32.cpp +++ b/examples/imgui_impl_win32.cpp @@ -447,6 +447,10 @@ void ImGui_ImplWin32_EnableDpiAwareness() } } +#ifdef _MSC_VER +#pragma comment(lib, "gdi32") // GetDeviceCaps() +#endif + float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor) { UINT xdpi = 96, ydpi = 96;