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 --- amiga/icon.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'amiga/icon.c') diff --git a/amiga/icon.c b/amiga/icon.c index 74cef1b26..5205956f5 100644 --- a/amiga/icon.c +++ b/amiga/icon.c @@ -64,7 +64,8 @@ static nserror amiga_icon_create(const content_handler *handler, static bool amiga_icon_convert(struct content *c); static void amiga_icon_destroy(struct content *c); static bool amiga_icon_redraw(struct content *c, - struct content_redraw_data *data, const struct rect *clip); + struct content_redraw_data *data, const struct rect *clip, + const struct redraw_context *ctx); static nserror amiga_icon_clone(const struct content *old, struct content **newc); static content_type amiga_icon_content_type(lwc_string *mime_type); @@ -286,7 +287,8 @@ void amiga_icon_destroy(struct content *c) */ bool amiga_icon_redraw(struct content *c, - struct content_redraw_data *data, const struct rect *clip) + struct content_redraw_data *data, const struct rect *clip, + const struct redraw_context *ctx) { bitmap_flags_t flags = BITMAPF_NONE; @@ -295,7 +297,7 @@ bool amiga_icon_redraw(struct content *c, 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