mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 04:54:42 +00:00
Add SDL_LoadSurface and SDL_LoadSurface_IO (#14374)
This commit is contained in:
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (image_file) {
|
||||
shape = SDL_strstr(image_file, ".png") ? SDL_LoadPNG(image_file) : SDL_LoadBMP(image_file);
|
||||
shape = SDL_LoadSurface(image_file);
|
||||
if (!shape) {
|
||||
SDL_Log("Couldn't load %s: %s", image_file, SDL_GetError());
|
||||
goto quit;
|
||||
|
||||
Reference in New Issue
Block a user