From eddae6af0663243a2677674d501f9a87d55798f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 30 Jun 2011 15:48:07 +0000 Subject: 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 --- image/mng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'image/mng.c') diff --git a/image/mng.c b/image/mng.c index 731f5f14e..0ba084f6a 100644 --- a/image/mng.c +++ b/image/mng.c @@ -68,7 +68,7 @@ static bool nsmng_process_data(struct content *c, const char *data, static bool nsmng_convert(struct content *c); static void nsmng_destroy(struct content *c); static bool nsmng_redraw(struct content *c, struct content_redraw_data *data, - const struct rect *clip); + const struct rect *clip, const struct redraw_context *ctx); static nserror nsmng_clone(const struct content *old, struct content **newc); static content_type nsmng_content_type(lwc_string *mime_type); @@ -686,7 +686,7 @@ void nsmng_destroy(struct content *c) bool nsmng_redraw(struct content *c, struct content_redraw_data *data, - const struct rect *clip) + const struct rect *clip, const struct redraw_context *ctx) { nsmng_content *mng = (nsmng_content *) c; bool ret; @@ -705,7 +705,7 @@ bool nsmng_redraw(struct content *c, struct content_redraw_data *data, if (data->repeat_y) flags |= BITMAPF_REPEAT_Y; - ret = plot.bitmap(data->x, data->y, data->width, data->height, + ret = ctx->plot->bitmap(data->x, data->y, data->width, data->height, c->bitmap, data->background_colour, flags); /* Check if we need to restart the animation -- cgit v1.2.3