summaryrefslogtreecommitdiff
path: root/amiga/icon.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-05-08 22:18:28 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-05-08 22:18:28 +0000
commit813c115cb5c9757ee655547b5492478e8699f36c (patch)
treed650d09da16e48013ba4b0d07ce3141d423bc85a /amiga/icon.c
parent8be1e85e919d5b6c12979dca0d57f7cd67d2cb79 (diff)
downloadnetsurf-813c115cb5c9757ee655547b5492478e8699f36c.tar.gz
netsurf-813c115cb5c9757ee655547b5492478e8699f36c.tar.bz2
Remove redraw_tiled
svn path=/trunk/netsurf/; revision=12322
Diffstat (limited to 'amiga/icon.c')
-rw-r--r--amiga/icon.c16
1 files changed, 12 insertions, 4 deletions
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);
}