summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/image/mng.c b/image/mng.c
index 08de81724..4f19d7202 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -542,7 +542,7 @@ bool nsmng_redraw(struct content *c, int x, int y,
}
ret = plot.bitmap(x, y, width, height,
- c->bitmap, background_colour, c);
+ c->bitmap, background_colour, BITMAPF_NONE);
/* Check if we need to restart the animation
*/
@@ -560,6 +560,7 @@ bool nsmng_redraw_tiled(struct content *c, int x, int y,
bool repeat_x, bool repeat_y)
{
bool ret;
+ bitmap_flags_t flags = BITMAPF_NONE;
/* mark image as having been requested to display */
c->data.mng.displayed = true;
@@ -569,9 +570,14 @@ bool nsmng_redraw_tiled(struct content *c, int x, int y,
c->data.mng.opaque_test_pending = false;
}
- ret = plot.bitmap_tile(x, y, width, height,
+ if (repeat_x)
+ flags |= BITMAPF_REPEAT_X;
+ if (repeat_y)
+ flags |= BITMAPF_REPEAT_Y;
+
+ ret = plot.bitmap(x, y, width, height,
c->bitmap, background_colour,
- repeat_x, repeat_y, c);
+ flags);
/* Check if we need to restart the animation
*/