From b6daadb486e70502f1dd9fc1faeaf909933f13d8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 10 Apr 2014 12:53:20 -0400 Subject: Fix comment on dmnsn_sRGB_inverse_gamma(). --- libdimension/dimension/color.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdimension') 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 */ -- cgit v1.2.3