Browse Source

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

omar 6 years ago
parent
commit
03b0266b59
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/imgui_impl_win32.cpp

+ 4 - 0
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)
 float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor)
 {
 {
     UINT xdpi = 96, ydpi = 96;
     UINT xdpi = 96, ydpi = 96;