From 36569715f17cdfd15415cc3d412a54e6d6768be5 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 8 Feb 2016 10:43:56 +0000 Subject: Fix #78 If the gif disposal method is unspecified, default to compositing instead of full disposal. --- src/loader.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/loader.c b/src/loader.c index 1250289..35e7450 100644 --- a/src/loader.c +++ b/src/loader.c @@ -360,12 +360,7 @@ static void *bg_next_frame(void *data) } switch(disposal_method) { - case 0: /* nothing specified, just use the raw frame */ - if(ldr->bmp) { - FreeImage_Unload(ldr->bmp); - } - ldr->bmp = frame32; - break; + case 0: /* nothing specified, fall through to compositing */ case 1: /* composite over previous frame */ if(ldr->bmp && ldr->cur_frame > 0) { FIBITMAP *bg_frame = FreeImage_ConvertTo24Bits(ldr->bmp); -- cgit v1.2.3