mirror of https://github.com/libsdl-org/SDL.git
tray: fixed icon colors on Windows
This commit is contained in:
parent
7570ab106d
commit
a974888aad
|
|
@ -27,7 +27,7 @@
|
|||
#if !(defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
|
||||
HICON CreateIconFromSurface(SDL_Surface *surface)
|
||||
{
|
||||
SDL_Surface *s = SDL_ConvertSurface(surface, SDL_PIXELFORMAT_RGBA32);
|
||||
SDL_Surface *s = SDL_ConvertSurface(surface, SDL_PIXELFORMAT_ARGB8888);
|
||||
if (!s) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue