Examples: Made imgui_impl_win32 drag gdi32.lib for GetDeviceCaps(). (#2327)

This commit is contained in:
omar 2019-02-01 15:23:25 +01:00
parent d1c45c0d76
commit 03b0266b59

View File

@ -447,6 +447,10 @@ void ImGui_ImplWin32_EnableDpiAwareness()
} }
} }
#ifdef _MSC_VER
#pragma comment(lib, "gdi32") // GetDeviceCaps()
#endif
float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor) float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor)
{ {
UINT xdpi = 96, ydpi = 96; UINT xdpi = 96, ydpi = 96;