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/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image/png.c') diff --git a/image/png.c b/image/png.c index a0475aa2f..57cd50146 100644 --- a/image/png.c +++ b/image/png.c @@ -363,7 +363,7 @@ static void nspng_destroy(struct content *c) static bool nspng_redraw(struct content *c, struct content_redraw_data *data, - const struct rect *clip) + const struct rect *clip, const struct redraw_context *ctx) { nspng_content *png_c = (nspng_content *) c; bitmap_flags_t flags = BITMAPF_NONE; @@ -375,7 +375,7 @@ static bool nspng_redraw(struct content *c, struct content_redraw_data *data, if (data->repeat_y) flags |= BITMAPF_REPEAT_Y; - return plot.bitmap(data->x, data->y, data->width, data->height, + return ctx->plot->bitmap(data->x, data->y, data->width, data->height, png_c->bitmap, data->background_colour, flags); } -- cgit v1.2.3