summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-04-16 15:54:51 +0100
committerRobin Watts <robin.watts@artifex.com>2013-04-16 16:37:13 +0100
commite151d0a1d8e5d03e48f96a650210bc5942517f98 (patch)
tree1cdaa0cf02a83dd36c781a1c53e6600a637e897e /fitz
parent4349a0a7605acc2c3aa6ce9e309a3c1dfea26912 (diff)
downloadmupdf-e151d0a1d8e5d03e48f96a650210bc5942517f98.tar.xz
Avoid expanding path for stroke twice.
fz_bound_path already takes care of stroke expansion - don't apply it twice.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/dev_list.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fitz/dev_list.c b/fitz/dev_list.c
index 6d3ab515..69542677 100644
--- a/fitz/dev_list.c
+++ b/fitz/dev_list.c
@@ -250,7 +250,6 @@ fz_list_stroke_path(fz_device *dev, fz_path *path, fz_stroke_state *stroke,
fz_try(ctx)
{
fz_bound_path(dev->ctx, path, stroke, ctm, &node->rect);
- fz_adjust_rect_for_stroke(&node->rect, stroke, ctm);
node->item.path = fz_clone_path(dev->ctx, path);
node->stroke = fz_keep_stroke_state(dev->ctx, stroke);
}
@@ -293,7 +292,6 @@ fz_list_clip_stroke_path(fz_device *dev, fz_path *path, const fz_rect *rect, fz_
fz_try(ctx)
{
fz_bound_path(dev->ctx, path, stroke, ctm, &node->rect);
- fz_adjust_rect_for_stroke(&node->rect, stroke, ctm);
if (rect)
fz_intersect_rect(&node->rect, rect);
node->item.path = fz_clone_path(dev->ctx, path);