summaryrefslogtreecommitdiff
path: root/amiga/plugin_hack.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/plugin_hack.c')
-rw-r--r--amiga/plugin_hack.c10
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);