mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Support PNG icons in the SDL test code
This commit is contained in:
parent
4e79d2ad64
commit
56269cd010
1 changed files with 1 additions and 1 deletions
|
|
@ -1143,7 +1143,7 @@ static SDL_Surface *SDLTest_LoadIcon(const char *file)
|
|||
SDL_Surface *icon;
|
||||
|
||||
/* Load the icon surface */
|
||||
icon = SDL_LoadBMP(file);
|
||||
icon = SDL_LoadSurface(file);
|
||||
if (!icon) {
|
||||
SDL_Log("Couldn't load %s: %s", file, SDL_GetError());
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue