summaryrefslogtreecommitdiff
path: root/render/renderpath.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-11 07:52:33 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-11 07:52:33 +0100
commit1be84ed1d4fbe44387222995a124a4f84ee55210 (patch)
tree4748ea9933e543fbde652857444b416cc16361d0 /render/renderpath.c
parent58de1fff510078e3d2d8cfce033c87299adf78f0 (diff)
downloadmupdf-1be84ed1d4fbe44387222995a124a4f84ee55210.tar.xz
fitz tree resource reference counting
Diffstat (limited to 'render/renderpath.c')
-rw-r--r--render/renderpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/renderpath.c b/render/renderpath.c
index a83505f9..498c3a63 100644
--- a/render/renderpath.c
+++ b/render/renderpath.c
@@ -5,7 +5,7 @@ enum { HS = 17, VS = 15, SF = 1 };
static fz_error *pathtogel(fz_gel *gel, fz_pathnode *path, fz_matrix ctm)
{
- float flatness = 0.3 / ctm.a;
+ float flatness = 0.3 / sqrt(fabs(ctm.a * ctm.d - ctm.b * ctm.c));
if (flatness < 0.1)
flatness = 0.1;
if (path->paint == FZ_STROKE)