From c5749f0ae7c8b6252dab321e78ab3b9d53deaba1 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Tue, 9 Sep 2025 16:35:18 -0400 Subject: [PATCH] video: Xbox buildfix for DeclareDPIAwareSystem --- src/video/windows/SDL_windowsvideo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c index 0be5f23ccd..823de03905 100644 --- a/src/video/windows/SDL_windowsvideo.c +++ b/src/video/windows/SDL_windowsvideo.c @@ -461,6 +461,7 @@ static BOOL WIN_DeclareDPIAwareUnaware(SDL_VideoDevice *_this) static BOOL WIN_DeclareDPIAwareSystem(SDL_VideoDevice *_this) { +#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES) SDL_VideoData *data = _this->internal; if (data->SetProcessDpiAwarenessContext) { @@ -472,9 +473,9 @@ static BOOL WIN_DeclareDPIAwareSystem(SDL_VideoDevice *_this) } else if (data->SetProcessDPIAware) { // Windows Vista return data->SetProcessDPIAware(); - } else { - return FALSE; } +#endif + return FALSE; } static BOOL WIN_DeclareDPIAwarePerMonitor(SDL_VideoDevice *_this)