diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-26 22:23:40 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-26 22:23:40 +0000 |
commit | 456077353cf08f64684d3736a81e7e91d8c45a0c (patch) | |
tree | 32796a64ea35629b1dcf25ca4d32ec60bbf96ecd /riscos/gif.c | |
parent | b59616c9ab85b0f58c0318f62e39f197932a712b (diff) | |
download | netsurf-456077353cf08f64684d3736a81e7e91d8c45a0c.tar.gz netsurf-456077353cf08f64684d3736a81e7e91d8c45a0c.tar.bz2 |
[project @ 2004-07-26 22:23:40 by rjw]
Hotlist toolbar icon shading. Fix for GIF animation artifacts under certain conditions.
svn path=/import/netsurf/; revision=1151
Diffstat (limited to 'riscos/gif.c')
-rw-r--r-- | riscos/gif.c | 8 |
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; |