[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43522] trunk/blender/source/blender/ blenlib/intern/math_color_inline.c: fix for error in last commit

Campbell Barton ideasman42 at gmail.com
Thu Jan 19 10:56:00 CET 2012


Revision: 43522
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43522
Author:   campbellbarton
Date:     2012-01-19 09:55:50 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
fix for error in last commit

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/math_color_inline.c

Modified: trunk/blender/source/blender/blenlib/intern/math_color_inline.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_color_inline.c	2012-01-19 09:09:00 UTC (rev 43521)
+++ trunk/blender/source/blender/blenlib/intern/math_color_inline.c	2012-01-19 09:55:50 UTC (rev 43522)
@@ -66,9 +66,9 @@
 {
 	int r, g, b;
 
-	r = 255 * linearrgb_to_srgb(linear[0]) * 255;
-	g = 255 * linearrgb_to_srgb(linear[1]) * 255;
-	b = 255 * linearrgb_to_srgb(linear[2]) * 255;
+	r = 255 * linearrgb_to_srgb(linear[0]);
+	g = 255 * linearrgb_to_srgb(linear[1]);
+	b = 255 * linearrgb_to_srgb(linear[2]);
 
 	srgb[0] = FTOCHAR(r);
 	srgb[1] = FTOCHAR(g);
@@ -79,9 +79,9 @@
 {
 	int r, g, b, a;
 
-	r = 255 * linearrgb_to_srgb(linear[0]) * 255;
-	g = 255 * linearrgb_to_srgb(linear[1]) * 255;
-	b = 255 * linearrgb_to_srgb(linear[2]) * 255;
+	r = 255 * linearrgb_to_srgb(linear[0]);
+	g = 255 * linearrgb_to_srgb(linear[1]);
+	b = 255 * linearrgb_to_srgb(linear[2]);
 	a = 255 * linear[3];
 
 	srgb[0] = FTOCHAR(r);



More information about the Bf-blender-cvs mailing list