summaryrefslogtreecommitdiff
path: root/image/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/png.c')
-rw-r--r--image/png.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/image/png.c b/image/png.c
index 7be801099..246b6d4ff 100644
--- a/image/png.c
+++ b/image/png.c
@@ -305,8 +305,7 @@ void nspng_destroy(struct content *c)
bool nspng_redraw(struct content *c, int x, int y,
- int width, int height,
- int clip_x0, int clip_y0, int clip_x1, int clip_y1,
+ int width, int height, struct rect *clip,
float scale, colour background_colour)
{
assert(c->bitmap != NULL);
@@ -315,8 +314,8 @@ bool nspng_redraw(struct content *c, int x, int y,
background_colour, BITMAPF_NONE);
}
-bool nspng_redraw_tiled(struct content *c, int x, int y, int width, int height,
- int clip_x0, int clip_y0, int clip_x1, int clip_y1,
+bool nspng_redraw_tiled(struct content *c, int x, int y,
+ int width, int height, struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y)
{