Fixed warning: "SDL_VIDEO_RENDER_D3D12" is not defined, evaluates to 0

This commit is contained in:
Sam Lantinga 2024-09-16 07:39:25 -07:00
parent 4f722d372a
commit 0f85fdefc8

View file

@ -36,7 +36,7 @@
#endif
#undef WINVER
#undef _WIN32_WINNT
#if SDL_VIDEO_RENDER_D3D12 || defined(HAVE_DXGI1_6_H)
#if defined(SDL_VIDEO_RENDER_D3D12) || defined(HAVE_DXGI1_6_H)
#define _WIN32_WINNT 0xA00 // For D3D12, 0xA00 is required
#elif defined(HAVE_SHELLSCALINGAPI_H)
#define _WIN32_WINNT 0x603 // For DPI support