Skip to content

Commit

Permalink
if uwp, no ImGui_ImplWin32_EnableDpiAwareness()
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Feb 2, 2024
1 parent 50ed40c commit 01e3bdc
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#ifdef _WIN32

#ifdef __cplusplus_winrt
#include <cstdio>
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 <Windows.h>
#include <winuser.h>
#include <wingdi.h>
#include <winnt.h>
#else
#include <windows.h>
#endif
Expand Down Expand Up @@ -172,4 +177,7 @@ namespace Internal

} // namespace Internal
} // namespace HelloImGui

#endif // __cplusplus_winrt

#endif // #ifdef _WIN32

0 comments on commit 01e3bdc

Please sign in to comment.