aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2016-02-08 10:43:56 +0000
committerHarry Jeffery <harry@exec64.co.uk>2016-02-08 10:43:56 +0000
commit36569715f17cdfd15415cc3d412a54e6d6768be5 (patch)
treeed0b198979edf813b6fb630e3a9b18a5789af94b
parent7e1e553ba9fab75a5e2fb23337d0eba02593c820 (diff)
downloadimv-36569715f17cdfd15415cc3d412a54e6d6768be5.tar.gz
Fix #78
If the gif disposal method is unspecified, default to compositing instead of full disposal.
-rw-r--r--src/loader.c7
1 files changed, 1 insertions, 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);