From 3f39cf8d42cc66953487b129f11df25009bcc543 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 31 May 2004 21:51:35 +0000 Subject: [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 --- riscos/gif.c | 8 ++++++-- 1 file 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); } -- cgit v1.2.3