diff options
Diffstat (limited to 'image/webp.c')
-rw-r--r-- | image/webp.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/image/webp.c b/image/webp.c index daa7f4522..8702b0a3b 100644 --- a/image/webp.c +++ b/image/webp.c @@ -47,10 +47,8 @@ static nserror webp_create(const content_handler *handler, bool quirks, struct content **c); static bool webp_convert(struct content *c); static void webp_destroy(struct content *c); -static bool webp_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour, - bool repeat_x, bool repeat_y); +static bool webp_redraw(struct content *c, struct content_redraw_data *data, + const struct rect *clip); static nserror webp_clone(const struct content *old, struct content **newc); static content_type webp_content_type(lwc_string *mime_type); @@ -213,20 +211,18 @@ void webp_destroy(struct content *c) * Redraw a CONTENT_WEBP. */ -bool webp_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour, - bool repeat_x, bool repeat_y) +bool webp_redraw(struct content *c, struct content_redraw_data *data, + const struct rect *clip) { bitmap_flags_t flags = BITMAPF_NONE; - if (repeat_x) + if (data->repeat_x) flags |= BITMAPF_REPEAT_X; - if (repeat_y) + if (data->repeat_y) flags |= BITMAPF_REPEAT_Y; - return plot.bitmap(x, y, width, height, - c->bitmap, background_colour, flags); + return plot.bitmap(data->x, data->y, data->width, data->height, + c->bitmap, data->background_colour, flags); } |