summaryrefslogtreecommitdiff
path: root/cocoa/apple_image.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/apple_image.m')
-rw-r--r--cocoa/apple_image.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/cocoa/apple_image.m b/cocoa/apple_image.m
index 61f1c5257..11251d4e9 100644
--- a/cocoa/apple_image.m
+++ b/cocoa/apple_image.m
@@ -42,7 +42,7 @@ static nserror apple_image_create(const content_handler *handler,
static bool apple_image_convert(struct content *c);
static void apple_image_destroy(struct content *c);
static bool apple_image_redraw(struct content *c, struct content_redraw_data *data,
- const struct rect *clip);
+ const struct rect *clip, const struct redraw_context *ctx);
static nserror apple_image_clone(const struct content *old,
struct content **newc);
static content_type apple_image_content_type(lwc_string *mime_type);
@@ -244,7 +244,7 @@ content_type apple_image_content_type(lwc_string *mime_type)
*/
bool apple_image_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;
@@ -253,7 +253,7 @@ bool apple_image_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);
}