summaryrefslogtreecommitdiff
path: root/riscos/gif.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-05-05 16:33:15 +0000
committerJames Bursa <james@netsurf-browser.org>2004-05-05 16:33:15 +0000
commitbb41604045cbabbf9aea502ccc9b0e9db50e6aa7 (patch)
tree73e84936444d0e418cf4c029b347e2205edd552a /riscos/gif.c
parent9deb539031dbd92dc9caa45221e21a018fb2a570 (diff)
downloadnetsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.gz
netsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.bz2
[project @ 2004-05-05 16:33:15 by bursa]
Fix some compiler warnings. Ignore size attribute for file inputs. svn path=/import/netsurf/; revision=828
Diffstat (limited to 'riscos/gif.c')
-rw-r--r--riscos/gif.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index 63952342e..2b227af6d 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -4,9 +4,6 @@
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 John M Bell <jmb202@ecs.soton.ac.uk>
* Copyright 2004 Richard Wilson <not_ginger_matt@sourceforge.net>
- *
- * Parts modified from IGviewer source by Peter Hartley
- * http://utter.chaos.org/~pdh/software/intergif.htm
*/
#include <assert.h>
@@ -94,9 +91,12 @@ void nsgif_redraw(struct content *c, long x, long y,
/* Decode from the last frame to the current frame
*/
- previous_frame = c->data.gif.gif->decoded_frame;
- if (previous_frame > c->data.gif.current_frame) previous_frame = -1;
- for (frame = previous_frame + 1; frame <= c->data.gif.current_frame; frame++) {
+ if (c->data.gif.current_frame < c->data.gif.gif->decoded_frame)
+ previous_frame = 0;
+ else
+ previous_frame = c->data.gif.gif->decoded_frame + 1;
+
+ for (frame = previous_frame; frame <= c->data.gif.current_frame; frame++) {
gif_decode_frame(c->data.gif.gif, frame);
}