mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Merge pull request #1242 from forkiesassds/master
Fix SDL3 backend with latest SDL3 commits and CC_BUILD_ICON defined
This commit is contained in:
commit
0a5cd607b0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue