From 50bd90c84a9fb2a55fcc1899310829095992791e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 28 Jun 2011 21:49:46 +0000 Subject: Fix up Artworks content handler. svn path=/trunk/netsurf/; revision=12536 --- riscos/content-handlers/artworks.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'riscos') diff --git a/riscos/content-handlers/artworks.c b/riscos/content-handlers/artworks.c index 1794f9164..0747a3de0 100644 --- a/riscos/content-handlers/artworks.c +++ b/riscos/content-handlers/artworks.c @@ -377,12 +377,12 @@ bool artworks_redraw(struct content *c, struct content_redraw_data *data, info.ditherx = ro_plot_origin_x; info.dithery = ro_plot_origin_y; - clip_x0 -= x; - clip_y0 -= y; - clip_x1 -= x; - clip_y1 -= y; + clip_x0 -= data->x; + clip_y0 -= data->y; + clip_x1 -= data->x; + clip_y1 -= data->y; - if (scale == 1.0) { + if (data->scale == 1.0) { info.clip_x0 = (clip_x0 * 512) + aw->x0 - 511; info.clip_y0 = ((c->height - clip_y1) * 512) + aw->y0 - 511; info.clip_x1 = (clip_x1 * 512) + aw->x0 + 511; -- cgit v1.2.3