diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-06-19 17:04:04 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-06-19 17:04:04 +0200 |
commit | 8e59d2f0e102476c0dbd897661860666c12e8aa6 (patch) | |
tree | b4ce4ab1eccb87c1771b9a65c8ca6e8c77aea8c7 /fitz/res_path.c | |
parent | b058141ef35119f3e0b51c73716abbe235b034e2 (diff) | |
download | mupdf-8e59d2f0e102476c0dbd897661860666c12e8aa6.tar.xz |
Floats everywhere!
Diffstat (limited to 'fitz/res_path.c')
-rw-r--r-- | fitz/res_path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_path.c b/fitz/res_path.c index af084a93..1b006fb7 100644 --- a/fitz/res_path.c +++ b/fitz/res_path.c @@ -157,9 +157,9 @@ fz_boundpath(fz_path *path, fz_strokestate *stroke, fz_matrix ctm) if (stroke) { - float miterlength = sin(stroke->miterlimit / 2.0); + float miterlength = sinf(stroke->miterlimit * 0.5f); float linewidth = stroke->linewidth; - float expand = MAX(miterlength, linewidth) / 2.0; + float expand = MAX(miterlength, linewidth) * 0.5f; r.x0 -= expand; r.y0 -= expand; r.x1 += expand; |