summaryrefslogtreecommitdiff
path: root/base/matrix.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-18 08:59:46 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-18 08:59:46 +0100
commitff0bcfe322c6ba8910105780544f498bff23bcd4 (patch)
tree63d846b0b660064533ede43e2cd42b9b9c46e0b0 /base/matrix.c
parent88074516976927dbb436888c47ff25ef53578a0d (diff)
downloadmupdf-ff0bcfe322c6ba8910105780544f498bff23bcd4.tar.xz
workaround freetype rounding behavior
Diffstat (limited to 'base/matrix.c')
-rw-r--r--base/matrix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/matrix.c b/base/matrix.c
index 43c3f4e1..09a2de0f 100644
--- a/base/matrix.c
+++ b/base/matrix.c
@@ -76,6 +76,12 @@ fz_isrectilinear(fz_matrix m)
(fabs(m.a) < FLT_EPSILON && fabs(m.d) < FLT_EPSILON);
}
+float
+fz_matrixexpansion(fz_matrix m)
+{
+ return sqrt(fabs(m.a * m.d - m.b * m.c));
+}
+
fz_point
fz_transformpoint(fz_matrix m, fz_point p)
{