Browse Source
Backends/Internals: Don't use IME and clipboard default win32 functions when WINAPI_FAMILY_GAMES (#7585)
pull/5394/head
Erin M
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
imgui.cpp
|
|
@ -1000,7 +1000,8 @@ CODE |
|
|
|
#else |
|
|
|
#include <windows.h> |
|
|
|
#endif |
|
|
|
#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions
|
|
|
|
#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_GAMES) |
|
|
|
// The UWP and GDK Win32 API subsets don't support clipboard nor IME functions
|
|
|
|
#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS |
|
|
|
#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS |
|
|
|
#endif |
|
|
|