From 813c115cb5c9757ee655547b5492478e8699f36c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 8 May 2011 22:18:28 +0000 Subject: Remove redraw_tiled svn path=/trunk/netsurf/; revision=12322 --- amiga/icon.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'amiga/icon.c') diff --git a/amiga/icon.c b/amiga/icon.c index 07dac8c0e..59df3e955 100644 --- a/amiga/icon.c +++ b/amiga/icon.c @@ -65,7 +65,8 @@ 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); + float scale, colour background_colour, + bool repeat_x, bool repeat_y); static nserror amiga_icon_clone(const struct content *old, struct content **newc); static content_type amiga_icon_content_type(lwc_string *mime_type); @@ -82,7 +83,6 @@ static const content_handler amiga_icon_content_handler = { amiga_icon_redraw, NULL, NULL, - NULL, amiga_icon_clone, NULL, amiga_icon_content_type, @@ -297,10 +297,18 @@ void amiga_icon_destroy(struct content *c) bool amiga_icon_redraw(struct content *c, int x, int y, int width, int height, const struct rect *clip, - float scale, colour background_colour) + float scale, colour background_colour, + bool repeat_x, bool repeat_y) { + bitmap_flags_t flags = BITMAPF_NONE; + + if (repeat_x) + flags |= BITMAPF_REPEAT_X; + if (repeat_y) + flags |= BITMAPF_REPEAT_Y; + return plot.bitmap(x, y, width, height, - c->bitmap, background_colour, BITMAPF_NONE); + c->bitmap, background_colour, flags); } -- cgit v1.2.3