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/jpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'image/jpeg.c') diff --git a/image/jpeg.c b/image/jpeg.c index 544840241..58fb43e22 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -39,6 +39,7 @@ #include "utils/log.h" #include "utils/messages.h" #include "utils/talloc.h" +#include "utils/types.h" #include "utils/utils.h" #define JPEG_INTERNAL_OPTIONS @@ -278,7 +279,7 @@ static void nsjpeg_destroy(struct content *c) * Redraw a CONTENT_JPEG with appropriate tiling. */ static bool nsjpeg_redraw(struct content *c, struct content_redraw_data *data, - const struct rect *clip) + const struct rect *clip, const struct redraw_context *ctx) { bitmap_flags_t flags = BITMAPF_NONE; @@ -287,7 +288,7 @@ static bool nsjpeg_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, c->bitmap, data->background_colour, flags); } -- cgit v1.2.3