From 8577895dc1257d2e488390378f6cff9e9b9ced01 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 29 Jun 2011 08:33:28 +0000 Subject: Fix up amiga content handlers. svn path=/trunk/netsurf/; revision=12541 --- amiga/dt_picture.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'amiga/dt_picture.c') diff --git a/amiga/dt_picture.c b/amiga/dt_picture.c index 890236d41..589642197 100644 --- a/amiga/dt_picture.c +++ b/amiga/dt_picture.c @@ -53,10 +53,8 @@ static nserror amiga_dt_picture_create(const content_handler *handler, bool quirks, struct content **c); static bool amiga_dt_picture_convert(struct content *c); static void amiga_dt_picture_destroy(struct content *c); -static bool amiga_dt_picture_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 amiga_dt_picture_redraw(struct content *c, + struct content_redraw_data *data, const struct rect *clip); static nserror amiga_dt_picture_clone(const struct content *old, struct content **newc); static content_type amiga_dt_picture_content_type(lwc_string *mime_type); @@ -221,21 +219,19 @@ void amiga_dt_picture_destroy(struct content *c) return; } -bool amiga_dt_picture_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 amiga_dt_picture_redraw(struct content *c, + struct content_redraw_data *data, const struct rect *clip) { LOG(("amiga_dt_picture_redraw")); 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); } nserror amiga_dt_picture_clone(const struct content *old, struct content **newc) -- cgit v1.2.3