From 384e5486bc6ee5d0ae9f9c2c7a25d660b4823582 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 29 May 2024 22:41:50 +0300 Subject: [PATCH] SDL_windows.h: set _WIN32_WINNT to 0xA00 dxgi1_6.h is available to make sure DISPLAYCONFIG_SDR_WHITE_LEVEL is visible to us. --- src/core/windows/SDL_windows.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/windows/SDL_windows.h b/src/core/windows/SDL_windows.h index e4a25f95ad..d1a54ab323 100644 --- a/src/core/windows/SDL_windows.h +++ b/src/core/windows/SDL_windows.h @@ -36,7 +36,7 @@ #endif #undef WINVER #undef _WIN32_WINNT -#if SDL_VIDEO_RENDER_D3D12 +#if 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 */