diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
commit | eddae6af0663243a2677674d501f9a87d55798f5 (patch) | |
tree | 08562171f870a6b592d624adfbfd0d6fa11fcdcb /amiga/plugin_hack.c | |
parent | a5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff) | |
download | netsurf-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 'amiga/plugin_hack.c')
-rw-r--r-- | amiga/plugin_hack.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index c10eb0772..72cba5e60 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -46,7 +46,8 @@ static bool amiga_plugin_hack_convert(struct content *c); static void amiga_plugin_hack_reformat(struct content *c, int width, int height); static void amiga_plugin_hack_destroy(struct content *c); static bool amiga_plugin_hack_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 void amiga_plugin_hack_open(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params); @@ -143,7 +144,8 @@ void amiga_plugin_hack_destroy(struct content *c) } bool amiga_plugin_hack_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) { plot_style_t pstyle = { .fill_type = PLOT_OP_TYPE_SOLID, @@ -154,10 +156,10 @@ bool amiga_plugin_hack_redraw(struct content *c, LOG(("amiga_plugin_hack_redraw")); - plot.rectangle(data->x, data->y, data->x + data->width, + ctx->plot->rectangle(data->x, data->y, data->x + data->width, data->y + data->height, &pstyle); - return plot.text(data->x, data->y+20, + return ctx->plot->text(data->x, data->y+20, lwc_string_data(content__get_mime_type(c)), lwc_string_length(content__get_mime_type(c)), plot_style_font); |