diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-28 21:49:46 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-28 21:49:46 +0000 |
commit | 50bd90c84a9fb2a55fcc1899310829095992791e (patch) | |
tree | f1a7ed3e588ceae9c1565c89bf81be9ebcaf4e7e | |
parent | d284ac14d9cbdee89e45bf81833aefdaa3b1b7d7 (diff) | |
download | netsurf-50bd90c84a9fb2a55fcc1899310829095992791e.tar.gz netsurf-50bd90c84a9fb2a55fcc1899310829095992791e.tar.bz2 |
Fix up Artworks content handler.
svn path=/trunk/netsurf/; revision=12536
-rw-r--r-- | riscos/content-handlers/artworks.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |