summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-05-31 20:03:20 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-05-31 20:03:20 +0000
commitae59bb94829ff23f5e2128220fd80f073bbbe3c0 (patch)
tree455865a280a3a554ad1c1d8c020736d90fb05a40 /riscos
parenta6fa745ed9f2c187764888aa2d97ceed57d49c2a (diff)
downloadnetsurf-ae59bb94829ff23f5e2128220fd80f073bbbe3c0.tar.gz
netsurf-ae59bb94829ff23f5e2128220fd80f073bbbe3c0.tar.bz2
[project @ 2004-05-31 20:03:20 by rjw]
Fix for interlaced GIFs with very small heights. svn path=/import/netsurf/; revision=903
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gifread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/gifread.c b/riscos/gifread.c
index b0ab90d6d..9adabf7eb 100644
--- a/riscos/gifread.c
+++ b/riscos/gifread.c
@@ -60,7 +60,7 @@
*/
static int gif_initialise_sprite(struct gif_animation *gif, unsigned int width, unsigned int height);
static int gif_initialise_frame(struct gif_animation *gif);
-static unsigned int gif_interlaced_line(unsigned int height, unsigned int y);
+static unsigned int gif_interlaced_line(int height, int y);
@@ -801,7 +801,7 @@ gif_decode_frame_exit:
}
-static unsigned int gif_interlaced_line(unsigned int height, unsigned int y) {
+static unsigned int gif_interlaced_line(int height, int y) {
if ((y << 3) < height) return (y << 3);
y -= ((height + 7) >> 3);
if ((y << 3) < (height - 4)) return (y << 3) + 4;