From 59fb052818656e74162d7f026f7089ec42c1e8a0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 27 Dec 2003 00:11:57 +0000 Subject: [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 --- riscos/gif.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'riscos/gif.c') 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); } -- cgit v1.2.3