From b7b1be36637efeba22ad288fd9451280cff054b2 Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Sat, 7 Nov 2009 18:50:17 +0000 Subject: [PATCH] anigif fix --- src/sdl-instead/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl-instead/graphics.c b/src/sdl-instead/graphics.c index a075854..6a6b89a 100644 --- a/src/sdl-instead/graphics.c +++ b/src/sdl-instead/graphics.c @@ -529,7 +529,7 @@ img_t gfx_load_image(char *filename) int nr = 0; if (strstr(filename,".gif") || strstr(filename,".GIF")) nr = AG_LoadGIF(filename, NULL, 0, NULL); - if (nr > 0) { /* anigif logic */ + if (nr > 1) { /* anigif logic */ int loop = 0; anigif_t agif = malloc(sizeof(struct _anigif_t) + nr * sizeof(AG_Frame)); if (!agif)