SDL: video: Xbox does not use CreateIconFromSurface

From c95b842b3059aeee4342b33826254117d378c492 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Thu, 16 Jan 2025 12:19:46 -0500
Subject: [PATCH] video: Xbox does not use CreateIconFromSurface

---
 src/video/windows/SDL_surface_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/windows/SDL_surface_utils.c b/src/video/windows/SDL_surface_utils.c
index 05b237642b47f..e6a071f0cdee9 100644
--- a/src/video/windows/SDL_surface_utils.c
+++ b/src/video/windows/SDL_surface_utils.c
@@ -24,6 +24,7 @@
 
 #include "../SDL_surface_c.h"
 
+#if !(defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
 HICON CreateIconFromSurface(SDL_Surface *surface)
 {
     SDL_Surface *s = SDL_ConvertSurface(surface, SDL_PIXELFORMAT_RGBA32);
@@ -93,3 +94,4 @@ HICON CreateIconFromSurface(SDL_Surface *surface)
 
     return hIcon;
 }
+#endif