summaryrefslogtreecommitdiff
path: root/amiga/icon.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-29 08:33:28 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-29 08:33:28 +0000
commit8577895dc1257d2e488390378f6cff9e9b9ced01 (patch)
tree21d4daf9f922f27e5d242f5700191d939c0b322b /amiga/icon.c
parent673a51a0e5a5ab1fae578181d72f38f2e3af8123 (diff)
downloadnetsurf-8577895dc1257d2e488390378f6cff9e9b9ced01.tar.gz
netsurf-8577895dc1257d2e488390378f6cff9e9b9ced01.tar.bz2
Fix up amiga content handlers.
svn path=/trunk/netsurf/; revision=12541
Diffstat (limited to 'amiga/icon.c')
-rw-r--r--amiga/icon.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/amiga/icon.c b/amiga/icon.c
index c6632b018..74cef1b26 100644
--- a/amiga/icon.c
+++ b/amiga/icon.c
@@ -63,10 +63,8 @@ static nserror amiga_icon_create(const content_handler *handler,
bool quirks, struct content **c);
static bool amiga_icon_convert(struct content *c);
static void amiga_icon_destroy(struct content *c);
-static bool amiga_icon_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_icon_redraw(struct content *c,
+ struct content_redraw_data *data, const struct rect *clip);
static nserror amiga_icon_clone(const struct content *old,
struct content **newc);
static content_type amiga_icon_content_type(lwc_string *mime_type);
@@ -287,20 +285,18 @@ void amiga_icon_destroy(struct content *c)
* Redraw a CONTENT_AMIGA_ICON.
*/
-bool amiga_icon_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_icon_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);
}