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 /draw/meshdraw.c | |
parent | b058141ef35119f3e0b51c73716abbe235b034e2 (diff) | |
download | mupdf-8e59d2f0e102476c0dbd897661860666c12e8aa6.tar.xz |
Floats everywhere!
Diffstat (limited to 'draw/meshdraw.c')
-rw-r--r-- | draw/meshdraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/meshdraw.c b/draw/meshdraw.c index 8e876397..e07a1f7d 100644 --- a/draw/meshdraw.c +++ b/draw/meshdraw.c @@ -248,8 +248,8 @@ fz_drawtriangle(fz_pixmap *pix, float *av, float *bv, float *cv, int n, fz_bbox for (i = 0; i < len; i++) { - gel[i][0] = floor(poly[i][0] + 0.5) * 65536; /* trunc and fix */ - gel[i][1] = floor(poly[i][1] + 0.5); /* y is not fixpoint */ + gel[i][0] = floorf(poly[i][0] + 0.5f) * 65536; /* trunc and fix */ + gel[i][1] = floorf(poly[i][1] + 0.5f); /* y is not fixpoint */ for (k = 2; k < n; k++) gel[i][k] = poly[i][k] * 65536; /* fix with precision */ } |