summaryrefslogtreecommitdiff
path: root/riscos/content-handlers/draw.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
commiteddae6af0663243a2677674d501f9a87d55798f5 (patch)
tree08562171f870a6b592d624adfbfd0d6fa11fcdcb /riscos/content-handlers/draw.c
parenta5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff)
downloadnetsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.gz
netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.bz2
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
Diffstat (limited to 'riscos/content-handlers/draw.c')
-rw-r--r--riscos/content-handlers/draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/content-handlers/draw.c b/riscos/content-handlers/draw.c
index e8a9d654a..5f3865921 100644
--- a/riscos/content-handlers/draw.c
+++ b/riscos/content-handlers/draw.c
@@ -51,7 +51,7 @@ static nserror draw_create(const content_handler *handler,
static bool draw_convert(struct content *c);
static void draw_destroy(struct content *c);
static bool draw_redraw(struct content *c, struct content_redraw_data *data,
- const struct rect *clip);
+ const struct rect *clip, const struct redraw_context *ctx);
static nserror draw_clone(const struct content *old, struct content **newc);
static content_type draw_content_type(lwc_string *mime_type);
@@ -207,7 +207,7 @@ void draw_destroy(struct content *c)
*/
bool draw_redraw(struct content *c, struct content_redraw_data *data,
- const struct rect *clip)
+ const struct rect *clip, const struct redraw_context *ctx)
{
draw_content *draw = (draw_content *) c;
os_trfm matrix;
@@ -216,7 +216,7 @@ bool draw_redraw(struct content *c, struct content_redraw_data *data,
const void *src_data;
os_error *error;
- if (plot.flush && !plot.flush())
+ if (ctx->plot->flush && !ctx->plot->flush())
return false;
if (!c->width || !c->height)