wrlib: changed Gamma Correction calculation to use single-precision float
commitb64d9e6be0e23b32c4020304d019742745752627
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 24 May 2015 13:49:09 +0000 (24 15:49 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 24 May 2015 22:25:57 +0000 (24 23:25 +0100)
treee0ddb5bdcd8ae354b44721e9e6cd3f5bfddbdcd3
parent9ab220345679662118e107d9879e563dc1546578
wrlib: changed Gamma Correction calculation to use single-precision float

The original code was using double precision floating point to perform the
color corrections for the creation of the standard colormap. This precision
is not necessary because color coding is 16 bits anyway, and on some
architecture the double precision comes with a cost.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
m4/wm_libmath.m4
wrlib/context.c