commit | 768429bbc1f470e3ccf49ab1b26435509cb4772d | [log] [tgz] |
---|---|---|
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Tue Nov 24 07:26:06 2009 -0600 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Tue Nov 24 07:26:06 2009 -0600 |
tree | c959a0652610931cf30d6d46518b8ca342772d04 | |
parent | 2a087220ddeae57ea39eb545c4522b6d6ce09b05 [diff] |
[devel] Use fast integer PNG_DIVIDE_BY_255() or PNG_DIVIDE_BY_65535() to accomplish alpha premultiplication when PNG_READ_COMPOSITE_NODIV_SUPPORTED is defined. Changed "/255" to "/255.0" in background calculations to make it clear that the 255 is used as a double (and to prevent anyone from being tempted to use PNG_DIVIDE_BY_255() there).