mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-01 03:24:56 +00:00
Use PNG files for tests and examples
These are much smaller than the previous BMP files Fixes https://github.com/libsdl-org/SDL/issues/14159
This commit is contained in:
@@ -111,7 +111,7 @@ static const char *cross[] = {
|
||||
|
||||
static SDL_Surface *load_image_file(const char *file)
|
||||
{
|
||||
SDL_Surface *surface = SDL_LoadBMP(file);
|
||||
SDL_Surface *surface = SDL_strstr(file, ".png") ? SDL_LoadPNG(file) : SDL_LoadBMP(file);
|
||||
if (surface) {
|
||||
if (SDL_GetSurfacePalette(surface)) {
|
||||
const Uint8 bpp = SDL_BITSPERPIXEL(surface->format);
|
||||
|
||||
Reference in New Issue
Block a user