From 7eca6b0d05443e85ecd7bb107dccf410696364aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Mar 2012 13:36:39 +0100 Subject: Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox. --- draw/draw_paint.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'draw/draw_paint.c') diff --git a/draw/draw_paint.c b/draw/draw_paint.c index 6a73783b..2a5f9607 100644 --- a/draw/draw_paint.c +++ b/draw/draw_paint.c @@ -382,8 +382,8 @@ fz_paint_pixmap_with_rect(fz_pixmap *dst, fz_pixmap *src, int alpha, fz_bbox bbo assert(dst->n == src->n); - bbox = fz_intersect_bbox(bbox, fz_bound_pixmap(dst)); - bbox = fz_intersect_bbox(bbox, fz_bound_pixmap(src)); + bbox = fz_intersect_bbox(bbox, fz_pixmap_bbox_no_ctx(dst)); + bbox = fz_intersect_bbox(bbox, fz_pixmap_bbox_no_ctx(src)); x = bbox.x0; y = bbox.y0; @@ -413,8 +413,8 @@ fz_paint_pixmap(fz_pixmap *dst, fz_pixmap *src, int alpha) assert(dst->n == src->n); - bbox = fz_bound_pixmap(dst); - bbox = fz_intersect_bbox(bbox, fz_bound_pixmap(src)); + bbox = fz_pixmap_bbox_no_ctx(dst); + bbox = fz_intersect_bbox(bbox, fz_pixmap_bbox_no_ctx(src)); x = bbox.x0; y = bbox.y0; @@ -445,9 +445,9 @@ fz_paint_pixmap_with_mask(fz_pixmap *dst, fz_pixmap *src, fz_pixmap *msk) assert(dst->n == src->n); assert(msk->n == 1); - bbox = fz_bound_pixmap(dst); - bbox = fz_intersect_bbox(bbox, fz_bound_pixmap(src)); - bbox = fz_intersect_bbox(bbox, fz_bound_pixmap(msk)); + bbox = fz_pixmap_bbox_no_ctx(dst); + bbox = fz_intersect_bbox(bbox, fz_pixmap_bbox_no_ctx(src)); + bbox = fz_intersect_bbox(bbox, fz_pixmap_bbox_no_ctx(msk)); x = bbox.x0; y = bbox.y0; -- cgit v1.2.3