summaryrefslogtreecommitdiff
path: root/riscos/gif.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-12-27 00:11:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-12-27 00:11:57 +0000
commit59fb052818656e74162d7f026f7089ec42c1e8a0 (patch)
treee5b8bf21e2201adf5170f2bfde49ae4423902f63 /riscos/gif.c
parent2363d8f5af7302924a0ce3608d971f5594710f3f (diff)
downloadnetsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.gz
netsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.bz2
[project @ 2003-12-27 00:11:57 by jmb]
Tidy code to reduce compiler warnings. htmlredraw.c and plugin.c produce the most now. Hopefully I haven't broken anything ;) svn path=/import/netsurf/; revision=451
Diffstat (limited to 'riscos/gif.c')
-rw-r--r--riscos/gif.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index 3eceb9db7..97ed89e76 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -106,7 +106,7 @@ int nsgif_convert(struct content *c, unsigned int iwidth, unsigned int iheight)
}
}
else
- memset(mask, 255, header->mask - header->image);
+ memset(mask, 255, (unsigned int)(header->mask - header->image));
c->title = xcalloc(100, sizeof(char));
sprintf(c->title, "GIF image (%lux%lu)", c->width, c->height);
@@ -156,11 +156,13 @@ void nsgif_redraw(struct content *c, long x, long y,
xosspriteop_put_sprite_scaled(osspriteop_PTR,
c->data.gif.sprite_area,
(osspriteop_id) (c->data.gif.sprite_area + 1),
- x, y - height,
+ x, (int)(y - height),
/* osspriteop_USE_PALETTE is RO 3.5+ only.
* behaviour on RO < 3.5 is unknown...
*/
- osspriteop_USE_MASK | osspriteop_USE_PALETTE, &factors, table);
+ (osspriteop_action)(osspriteop_USE_MASK |
+ osspriteop_USE_PALETTE),
+ &factors, table);
xfree(table);
}