summaryrefslogtreecommitdiff
path: root/draw/draw_device.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-05-09 20:01:37 +0100
committerRobin Watts <robin.watts@artifex.com>2013-05-10 18:44:57 +0100
commit81626cb122701420a15dae49ed0e7ec3c442e9d3 (patch)
tree05c3366c61889c99a2640fa8b398c83adb6f6af9 /draw/draw_device.c
parent6d869a15eb33bdda06a737d2af6c04139e2b3bfe (diff)
downloadmupdf-81626cb122701420a15dae49ed0e7ec3c442e9d3.tar.xz
Update fz_bound_{text,path} functions.
Pass stroke state into fz_bound_text to allow for stroked text. Simplifies some calling code. Add consts to clarify the meanings of the calls.
Diffstat (limited to 'draw/draw_device.c')
-rw-r--r--draw/draw_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c
index 1a807a4c..0c95cbca 100644
--- a/draw/draw_device.c
+++ b/draw/draw_device.c
@@ -678,7 +678,7 @@ fz_draw_clip_text(fz_device *devp, fz_text *text, const fz_matrix *ctm, int accu
/* make the mask the exact size needed */
fz_rect rect;
- fz_irect_from_rect(&bbox, fz_bound_text(dev->ctx, text, ctm, &rect));
+ fz_irect_from_rect(&bbox, fz_bound_text(dev->ctx, text, NULL, ctm, &rect));
fz_intersect_irect(&bbox, &state->scissor);
}
else
@@ -810,7 +810,7 @@ fz_draw_clip_stroke_text(fz_device *devp, fz_text *text, fz_stroke_state *stroke
fz_rect rect;
/* make the mask the exact size needed */
- fz_irect_from_rect(&bbox, fz_bound_text(dev->ctx, text, ctm, &rect));
+ fz_irect_from_rect(&bbox, fz_bound_text(dev->ctx, text, stroke, ctm, &rect));
fz_intersect_irect(&bbox, &state->scissor);
fz_try(ctx)