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 b6c57984b..01131ffee 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -234,8 +234,12 @@ void nsgif_animate(void *p)
data.redraw.height = c->data.gif.gif->frames[c->data.gif.current_frame].redraw_height;
/* redraw background (true) or plot on top (false) */
- data.redraw.full_redraw =
- c->data.gif.gif->frames[c->data.gif.current_frame].redraw_required;
+ if (c->data.gif.current_frame > 0) {
+ data.redraw.full_redraw =
+ c->data.gif.gif->frames[c->data.gif.current_frame - 1].redraw_required;
+ } else {
+ data.redraw.full_redraw = true;
+ }
/* other data */
data.redraw.object = c;