diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2013-04-18 09:36:05 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2013-04-18 09:42:48 +0200 |
commit | 62cb84a57c6faa84e249e1a62e9e08af824b7ff2 (patch) | |
tree | 6c42e12a1b2201c7bf363ea7b0b9135def3d01f4 /apps/plugins/imageviewer/gif/gif.c | |
parent | 540e5d103f803cfd508297f483c054328c59375f (diff) | |
download | rockbox-62cb84a57c6faa84e249e1a62e9e08af824b7ff2.tar.gz rockbox-62cb84a57c6faa84e249e1a62e9e08af824b7ff2.zip |
imageviewer: fix animated gifs handling
If disposal method is set to BACKGROUND one would expect that
canvas should be restored to global background color. That is
what gif standard suggests. Most (all?) decoders however treat
this as reseting canvas to transparency or fixed, decoder
specific background color. Virtually all gifs are prepared with
this in mind so to not break them we can't follow standard here.
Change-Id: I90ca712bba89d4190771eb5320eabda353d3e2bb
Diffstat (limited to 'apps/plugins/imageviewer/gif/gif.c')
-rw-r--r-- | apps/plugins/imageviewer/gif/gif.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/imageviewer/gif/gif.c b/apps/plugins/imageviewer/gif/gif.c index c3cad71e10..31fd11d9a6 100644 --- a/apps/plugins/imageviewer/gif/gif.c +++ b/apps/plugins/imageviewer/gif/gif.c | |||
@@ -110,10 +110,9 @@ static int load_image(char *filename, struct image_info *info, | |||
110 | 110 | ||
111 | if (!iv->running_slideshow) | 111 | if (!iv->running_slideshow) |
112 | { | 112 | { |
113 | rb->lcd_putsf(0, 2, "image %dx%d", | 113 | rb->lcd_putsf(0, 2, "file: %s", |
114 | p_decoder->width, | 114 | filename); |
115 | p_decoder->height); | 115 | rb->lcd_putsf(0, 3, "size: %dx%d", |
116 | rb->lcd_putsf(0, 3, "decoding %d*%d", | ||
117 | p_decoder->width, | 116 | p_decoder->width, |
118 | p_decoder->height); | 117 | p_decoder->height); |
119 | rb->lcd_update(); | 118 | rb->lcd_update(); |