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_pixmap.c | |
parent | b058141ef35119f3e0b51c73716abbe235b034e2 (diff) | |
download | mupdf-8e59d2f0e102476c0dbd897661860666c12e8aa6.tar.xz |
Floats everywhere!
Diffstat (limited to 'fitz/res_pixmap.c')
-rw-r--r-- | fitz/res_pixmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index 79900ed1..fd32fbaf 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -64,7 +64,7 @@ fz_gammapixmap(fz_pixmap *pix, float gamma) unsigned char *p = pix->samples; int i; for (i = 0; i < 256; i++) - table[i] = CLAMP(pow(i / 255.0, gamma) * 255.0, 0, 255); + table[i] = CLAMP(powf(i / 255.0f, gamma) * 255, 0, 255); while (n--) { *p = table[*p]; |