summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 02:25:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 02:25:57 +0000
commit79a2422fd1c875526d55dc6d579384ceb68f70d6 (patch)
tree84f720b7c7d45fad91da533c4e0fd259821bfafc
parent68d8ed687d7437daa80e3321cf1deb4f9cf5a760 (diff)
downloadnetsurf-79a2422fd1c875526d55dc6d579384ceb68f70d6.tar.gz
netsurf-79a2422fd1c875526d55dc6d579384ceb68f70d6.tar.bz2
Squash warnings
svn path=/trunk/netsurf/; revision=6930
-rw-r--r--riscos/draw.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/riscos/draw.c b/riscos/draw.c
index 7e0c8c2a1..f1a2b04c0 100644
--- a/riscos/draw.c
+++ b/riscos/draw.c
@@ -48,10 +48,11 @@ bool draw_convert(struct content *c, int width, int height)
{
union content_msg_data msg_data;
os_box bbox;
+ void *data = c->source_data;
os_error *error;
/* BBox contents in Draw units (256*OS unit) */
- error = xdrawfile_bbox(0, (drawfile_diagram*)(c->source_data),
+ error = xdrawfile_bbox(0, (drawfile_diagram *) data,
(int) c->source_size, 0, &bbox);
if (error) {
LOG(("xdrawfile_bbox: 0x%x: %s",
@@ -103,8 +104,9 @@ bool draw_redraw(struct content *c, int x, int y,
int clip_x0, int clip_y0, int clip_x1, int clip_y1,
float scale, colour background_colour)
{
- os_error *error;
os_trfm matrix;
+ void *data = c->source_data;
+ os_error *error;
if (plot.flush && !plot.flush())
return false;
@@ -123,8 +125,8 @@ bool draw_redraw(struct content *c, int x, int y,
matrix.entries[2][1] = ro_plot_origin_y * 256 - (y + height) * 512 -
c->data.draw.y0 * height / c->height;
- error = xdrawfile_render(0, (drawfile_diagram*)(c->source_data),
- (int)c->source_size, &matrix, 0, 0);
+ error = xdrawfile_render(0, (drawfile_diagram *) data,
+ (int) c->source_size, &matrix, 0, 0);
if (error) {
LOG(("xdrawfile_render: 0x%x: %s",
error->errnum, error->errmess));