From 2a9dc46581e5d0b8831b180e55f5bcbc5559e5f5 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 4 Mar 2023 07:51:01 +0200 Subject: [PATCH 17/17] sdl2: Support all graphics formats provided by SDL2_image See osdn #46413 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/sprite.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/client/gui-sdl2/sprite.c b/client/gui-sdl2/sprite.c index 44dbc919ff..b573556d5c 100644 --- a/client/gui-sdl2/sprite.c +++ b/client/gui-sdl2/sprite.c @@ -39,14 +39,26 @@ static struct sprite *ctor_sprite(SDL_Surface *surf); /************************************************************************//** Return a NULL-terminated, permanently allocated array of possible - graphics types extensions. Extensions listed first will be checked + graphics types extensions. Extensions listed first will be checked first. ****************************************************************************/ const char **gfx_fileextensions(void) { static const char *ext[] = { "png", + "gif", + "jpeg", "xpm", + "qoi", + "tga", + "bmp", + "xcf", + "pcx", + "lbm", + "ppm", + "pgm", + "pbm", + "svg", NULL }; -- 2.39.2