summaryrefslogtreecommitdiff
path: root/fitz/dev_bbox.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-03 16:04:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-03 16:04:03 +0100
commitf262a8c0bfae0cd90c2cd29acd409baf2157c241 (patch)
tree1a9f3a8c483e16c5d3d435d7c7143a6aa73b58e1 /fitz/dev_bbox.c
parent139d80bd65a164accf9d36d244d3d6a4c555aa47 (diff)
downloadmupdf-f262a8c0bfae0cd90c2cd29acd409baf2157c241.tar.xz
Be consistent about passing a fz_context in path/text/shade functions.
Diffstat (limited to 'fitz/dev_bbox.c')
-rw-r--r--fitz/dev_bbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/dev_bbox.c b/fitz/dev_bbox.c
index 9165407f..636ceb94 100644
--- a/fitz/dev_bbox.c
+++ b/fitz/dev_bbox.c
@@ -7,7 +7,7 @@ fz_bbox_fill_path(fz_device *dev, fz_path *path, int even_odd, fz_matrix ctm,
fz_colorspace *colorspace, float *color, float alpha)
{
fz_bbox *result = dev->user;
- fz_bbox bbox = fz_round_rect(fz_bound_path(path, NULL, ctm));
+ fz_bbox bbox = fz_round_rect(fz_bound_path(dev->ctx, path, NULL, ctm));
*result = fz_union_bbox(*result, bbox);
}
@@ -16,7 +16,7 @@ fz_bbox_stroke_path(fz_device *dev, fz_path *path, fz_stroke_state *stroke, fz_m
fz_colorspace *colorspace, float *color, float alpha)
{
fz_bbox *result = dev->user;
- fz_bbox bbox = fz_round_rect(fz_bound_path(path, stroke, ctm));
+ fz_bbox bbox = fz_round_rect(fz_bound_path(dev->ctx, path, stroke, ctm));
*result = fz_union_bbox(*result, bbox);
}
@@ -42,7 +42,7 @@ static void
fz_bbox_fill_shade(fz_device *dev, fz_shade *shade, fz_matrix ctm, float alpha)
{
fz_bbox *result = dev->user;
- fz_bbox bbox = fz_round_rect(fz_bound_shade(shade, ctm));
+ fz_bbox bbox = fz_round_rect(fz_bound_shade(dev->ctx, shade, ctm));
*result = fz_union_bbox(*result, bbox);
}