summaryrefslogtreecommitdiff
path: root/riscos/gif.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-05-31 21:51:35 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-05-31 21:51:35 +0000
commit3f39cf8d42cc66953487b129f11df25009bcc543 (patch)
treec7688658bc08d7113da3ddb0e3ed3a9fdd8a3a7a /riscos/gif.c
parentb1cfda278cdf5c0ec9ccf08cb5dd4129db67994e (diff)
downloadnetsurf-3f39cf8d42cc66953487b129f11df25009bcc543.tar.gz
netsurf-3f39cf8d42cc66953487b129f11df25009bcc543.tar.bz2
[project @ 2004-05-31 21:51:35 by rjw]
History window shows the last frame of GIFs with a finite loop count, the first frame otherwise. svn path=/import/netsurf/; revision=905
Diffstat (limited to 'riscos/gif.c')
-rw-r--r--riscos/gif.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index 0e7185634..ed4b83124 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -108,10 +108,14 @@ void nsgif_redraw(struct content *c, long x, long y,
if (ro_gui_current_redraw_gui->option_animate_images) {
current_frame = c->data.gif.current_frame;
} else {
- current_frame = 0;
+ current_frame = 0;
}
} else {
- current_frame = 0;
+ if (c->data.gif.gif->loop_count == 0) {
+ current_frame = 0;
+ } else {
+ current_frame = c->data.gif.gif->frame_count - 1;
+ }
tinct_options = (option_filter_sprites?(1<<1):0) |
(option_dither_sprites?(1<<2):0);
}