summaryrefslogtreecommitdiff
path: root/riscos/gif.c
diff options
context:
space:
mode:
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);
}