mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
video: Xbox does not use CreateIconFromSurface
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "../SDL_surface_c.h"
|
#include "../SDL_surface_c.h"
|
||||||
|
|
||||||
|
#if !(defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
|
||||||
HICON CreateIconFromSurface(SDL_Surface *surface)
|
HICON CreateIconFromSurface(SDL_Surface *surface)
|
||||||
{
|
{
|
||||||
SDL_Surface *s = SDL_ConvertSurface(surface, SDL_PIXELFORMAT_RGBA32);
|
SDL_Surface *s = SDL_ConvertSurface(surface, SDL_PIXELFORMAT_RGBA32);
|
||||||
@@ -93,3 +94,4 @@ HICON CreateIconFromSurface(SDL_Surface *surface)
|
|||||||
|
|
||||||
return hIcon;
|
return hIcon;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user