video: Xbox does not use CreateIconFromSurface

This commit is contained in:
Ethan Lee 2025-01-16 12:19:46 -05:00
parent d8e1ad0ebc
commit c95b842b30
1 changed files with 2 additions and 0 deletions

View File

@ -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