diff --git a/src/hello_imgui/internal/backend_impls/backend_window_helper/win32_dpi_awareness.cpp b/src/hello_imgui/internal/backend_impls/backend_window_helper/win32_dpi_awareness.cpp index e502157b..ad62928e 100644 --- a/src/hello_imgui/internal/backend_impls/backend_window_helper/win32_dpi_awareness.cpp +++ b/src/hello_imgui/internal/backend_impls/backend_window_helper/win32_dpi_awareness.cpp @@ -1,12 +1,17 @@ #ifdef _WIN32 +#ifdef __cplusplus_winrt + #include + void ImGui_ImplWin32_EnableDpiAwareness() + { + fprintf(stderr, "ImGui_ImplWin32_EnableDpiAwareness not implemented for __cplusplus_winrt, aka uwp\n"); + } +#else // __cplusplus_winrt + // Adapted from imgui/backends/imgui_impl_win32.cpp #include "imgui.h" #ifndef __MINGW32__ #include -#include -#include -#include #else #include #endif @@ -172,4 +177,7 @@ namespace Internal } // namespace Internal } // namespace HelloImGui + +#endif // __cplusplus_winrt + #endif // #ifdef _WIN32