Jelajahi Sumber

Windows: pragma link with user32.lib if we are using native clipboard function (unless IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS) #238

ocornut 10 tahun lalu
induk
melakukan
8738147aee
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -10043,6 +10043,7 @@ void ImFont::RenderText(float size, ImVec2 pos, ImU32 col, const ImVec4& clip_re
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #endif
+#pragma comment(lib, "user32")
 
 // Win32 API clipboard implementation
 static const char* GetClipboardTextFn_DefaultImpl()