diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-04-10 12:53:20 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-04-10 12:53:20 -0400 |
commit | b6daadb486e70502f1dd9fc1faeaf909933f13d8 (patch) | |
tree | 5447b8c0ac932e2716c2b6bc8113850819504388 /libdimension/dimension | |
parent | d2257911e04acab410134d1a3ed79fa569dd941d (diff) | |
download | dimension-b6daadb486e70502f1dd9fc1faeaf909933f13d8.tar.xz |
Fix comment on dmnsn_sRGB_inverse_gamma().
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/color.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h index 967e9a5..babdb32 100644 --- a/libdimension/dimension/color.h +++ b/libdimension/dimension/color.h @@ -84,9 +84,9 @@ dmnsn_sRGB_inverse_gamma(double CsRGB) * If C represents R, G, and B, then the Clinear values are now found as * follows: * - * { Csrgb/12.92, Csrgb <= 0.04045 - * Clinear = { 1/2.4 - * { ((Csrgb + 0.055)/1.055) , Csrgb > 0.04045 + * { Csrgb/12.92, Csrgb <= 0.04045 + * Clinear = { 2.4 + * { ((Csrgb + 0.055)/1.055) , Csrgb > 0.04045 */ if (CsRGB == 1.0) { return 1.0; /* Map 1.0 to 1.0 instead of 0.9999999999999999 */ |