[Rawstudio-commit] r3177 - trunk/plugins/dcp

Klaus Post klauspost at gmail.com
Fri Feb 12 22:19:15 CET 2010


Author: post
Date: 2010-02-12 22:19:15 +0100 (Fri, 12 Feb 2010)
New Revision: 3177

Modified:
   trunk/plugins/dcp/dcp.c
Log:
Avoid crash in C-code tone curve.

Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c	2010-02-12 21:18:51 UTC (rev 3176)
+++ trunk/plugins/dcp/dcp.c	2010-02-12 21:19:15 UTC (rev 3177)
@@ -816,8 +816,8 @@
 		else
 		{
 			// Case 4: r >= g == b; s = 0;
-			rr = tone_lut[_S(r)];
-			gg = tone_lut[_S(b)];
+			rr = lookup_tone(r, tone_lut);
+			gg = lookup_tone(b, tone_lut);
 			bb = gg;
 		}
 	}




More information about the Rawstudio-commit mailing list