tray: fixed icon colors on Windows

This commit is contained in:
Sam Lantinga
2025-01-19 10:47:30 -08:00
parent 7570ab106d
commit a974888aad

View File

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