From 03b0266b5921a5191ca33961ceb17d5b74b698f1 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 1 Feb 2019 15:23:25 +0100 Subject: [PATCH] Examples: Made imgui_impl_win32 drag gdi32.lib for GetDeviceCaps(). (#2327) --- examples/imgui_impl_win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/imgui_impl_win32.cpp b/examples/imgui_impl_win32.cpp index 7b60dd1b5..f34d84053 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;