Merge pull request #1242 from forkiesassds/master

Fix SDL3 backend with latest SDL3 commits and CC_BUILD_ICON defined
This commit is contained in:
UnknownShadow200 2024-08-06 11:28:27 +10:00 committed by GitHub
commit 0a5cd607b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,8 +53,9 @@ void Window_Free(void) { }
#include "../misc/sdl/CCIcon_SDL.h"
static void ApplyIcon(void) {
SDL_Surface* surface = SDL_CreateSurfaceFrom((void*)CCIcon_Data, CCIcon_Width, CCIcon_Height,
CCIcon_Pitch, SDL_PIXELFORMAT_BGRA8888);
SDL_Surface* surface = SDL_CreateSurfaceFrom(CCIcon_Width, CCIcon_Height, SDL_PIXELFORMAT_BGRA8888,
(void*)CCIcon_Data, CCIcon_Pitch);
SDL_SetWindowIcon(win_handle, surface);
}
#else