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/glyphcache.c | |
parent | b058141ef35119f3e0b51c73716abbe235b034e2 (diff) | |
download | mupdf-8e59d2f0e102476c0dbd897661860666c12e8aa6.tar.xz |
Floats everywhere!
Diffstat (limited to 'draw/glyphcache.c')
-rw-r--r-- | draw/glyphcache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/draw/glyphcache.c b/draw/glyphcache.c index 173d7979..ac148340 100644 --- a/draw/glyphcache.c +++ b/draw/glyphcache.c @@ -74,15 +74,15 @@ fz_renderglyph(fz_glyphcache *cache, fz_font *font, int cid, fz_matrix ctm) key.b = ctm.b * 65536; key.c = ctm.c * 65536; key.d = ctm.d * 65536; - key.e = (ctm.e - floor(ctm.e)) * 256; - key.f = (ctm.f - floor(ctm.f)) * 256; + key.e = (ctm.e - floorf(ctm.e)) * 256; + key.f = (ctm.f - floorf(ctm.f)) * 256; val = fz_hashfind(cache->hash, &key); if (val) return fz_keeppixmap(val); - ctm.e = floor(ctm.e) + key.e / 256.0; - ctm.f = floor(ctm.f) + key.f / 256.0; + ctm.e = floorf(ctm.e) + key.e / 256.0f; + ctm.f = floorf(ctm.f) + key.f / 256.0f; if (font->ftface) { |