diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-29 08:33:28 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-29 08:33:28 +0000 |
commit | 8577895dc1257d2e488390378f6cff9e9b9ced01 (patch) | |
tree | 21d4daf9f922f27e5d242f5700191d939c0b322b /amiga/dt_anim.c | |
parent | 673a51a0e5a5ab1fae578181d72f38f2e3af8123 (diff) | |
download | netsurf-8577895dc1257d2e488390378f6cff9e9b9ced01.tar.gz netsurf-8577895dc1257d2e488390378f6cff9e9b9ced01.tar.bz2 |
Fix up amiga content handlers.
svn path=/trunk/netsurf/; revision=12541
Diffstat (limited to 'amiga/dt_anim.c')
-rw-r--r-- | amiga/dt_anim.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/amiga/dt_anim.c b/amiga/dt_anim.c index 8ef210850..afc1e1108 100644 --- a/amiga/dt_anim.c +++ b/amiga/dt_anim.c @@ -60,10 +60,8 @@ static nserror amiga_dt_anim_create(const content_handler *handler, static bool amiga_dt_anim_convert(struct content *c); static void amiga_dt_anim_reformat(struct content *c, int width, int height); static void amiga_dt_anim_destroy(struct content *c); -static bool amiga_dt_anim_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_anim_redraw(struct content *c, + struct content_redraw_data *data, const struct rect *clip); static void amiga_dt_anim_open(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params); @@ -251,10 +249,8 @@ void amiga_dt_anim_destroy(struct content *c) return; } -bool amiga_dt_anim_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_anim_redraw(struct content *c, + struct content_redraw_data *data, const struct rect *clip) { amiga_dt_anim_content *plugin = (amiga_dt_anim_content *) c; @@ -262,13 +258,13 @@ bool amiga_dt_anim_redraw(struct content *c, int x, int y, 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); } /** |