[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47110] trunk/blender/source/blender/ blenkernel/intern/sequencer.c: Sequencer: replace clamp+round of multiplied color value with FTOCHAR macro,

Sergey Sharybin sergey.vfx at gmail.com
Mon May 28 12:39:22 CEST 2012


Revision: 47110
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47110
Author:   nazgul
Date:     2012-05-28 10:39:22 +0000 (Mon, 28 May 2012)
Log Message:
-----------
Sequencer: replace clamp+round of multiplied color value with FTOCHAR macro,

Should solve issues with building blender in release environment, should be
no functional changes.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/sequencer.c

Modified: trunk/blender/source/blender/blenkernel/intern/sequencer.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/sequencer.c	2012-05-28 10:32:38 UTC (rev 47109)
+++ trunk/blender/source/blender/blenkernel/intern/sequencer.c	2012-05-28 10:39:22 UTC (rev 47110)
@@ -1552,8 +1552,7 @@
 
 	for (y = 0; y < 256; y++) {
 		float v = color_balance_fl((float)y * (1.0f / 255.0f), lift, gain, gamma, mul);
-		CLAMP(v, 0.0f, 1.0f);
-		table[y] = round(v * 255);
+		table[y] = FTOCHAR(v);
 	}
 }
 




More information about the Bf-blender-cvs mailing list