summaryrefslogtreecommitdiff
path: root/riscos/draw.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/draw.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/draw.c')
-rw-r--r--riscos/draw.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/riscos/draw.c b/riscos/draw.c
index b8a07e7f4..3068649c1 100644
--- a/riscos/draw.c
+++ b/riscos/draw.c
@@ -24,7 +24,7 @@ void draw_create(struct content *c)
void draw_process_data(struct content *c, char *data, unsigned long size)
{
c->data.draw.data = xrealloc(c->data.draw.data, c->data.draw.length + size);
- memcpy(c->data.draw.data + c->data.draw.length, data, size);
+ memcpy((char*)c->data.draw.data + c->data.draw.length, data, size);
c->data.draw.length += size;
c->size += size;
}
@@ -46,7 +46,7 @@ int draw_convert(struct content *c, unsigned int width, unsigned int height)
/* BBox contents in Draw units (256*OS unit) */
error = xdrawfile_bbox(0, (drawfile_diagram*)(c->data.draw.data),
- c->data.draw.length, matrix, bbox);
+ (int)c->data.draw.length, matrix, bbox);
if (error) {
LOG(("error: %s", error->errmess));
@@ -90,9 +90,6 @@ void draw_redraw(struct content *c, long x, long y,
unsigned long width, unsigned long height,
long clip_x0, long clip_y0, long clip_x1, long clip_y1)
{
- os_error *error;
- unsigned int size;
- os_box bbox;
os_trfm *matrix = xcalloc(1, sizeof(os_trfm));
/* Scaled image. Transform units (65536*OS units) */
@@ -105,7 +102,7 @@ void draw_redraw(struct content *c, long x, long y,
matrix->entries[2][1] = (y-height) * 256;
xdrawfile_render(0, (drawfile_diagram*)(c->data.draw.data),
- c->data.draw.length, matrix, 0, 0);
+ (int)c->data.draw.length, matrix, 0, 0);
xfree(matrix);
}