summaryrefslogtreecommitdiff
path: root/draw/draw_paint.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-13 13:36:39 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-13 14:03:09 +0100
commit7eca6b0d05443e85ecd7bb107dccf410696364aa (patch)
treee4f5c9a362e7a4c7b51b2d07087f422043de9f2f /draw/draw_paint.c
parent48652e529ed1c0ae23cfd45f14d9655ad2849c89 (diff)
downloadmupdf-7eca6b0d05443e85ecd7bb107dccf410696364aa.tar.xz
Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox.
Diffstat (limited to 'draw/draw_paint.c')
-rw-r--r--draw/draw_paint.c14
1 files changed, 7 insertions, 7 deletions
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;