diff options
Diffstat (limited to 'image/bmp.c')
-rw-r--r-- | image/bmp.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/image/bmp.c b/image/bmp.c index b40ab7e8c..d209621ba 100644 --- a/image/bmp.c +++ b/image/bmp.c @@ -197,10 +197,8 @@ static bool nsbmp_convert(struct content *c) return true; } -static bool nsbmp_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 nsbmp_redraw(struct content *c, struct content_redraw_data *data, + const struct rect *clip) { nsbmp_content *bmp = (nsbmp_content *) c; bitmap_flags_t flags = BITMAPF_NONE; @@ -211,13 +209,13 @@ static bool nsbmp_redraw(struct content *c, int x, int y, c->bitmap = bmp->bmp->bitmap; - 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); } |