Author: Carlos Lopez <[email protected]>
Date: Tue Sep 18 20:48:42 2012 +0200
CairoColorAccumulator: clamp the result when converting to CairoColor
---
synfig-core/src/synfig/color.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/synfig-core/src/synfig/color.h b/synfig-core/src/synfig/color.h
index 08094ce..03585e9 100644
--- a/synfig-core/src/synfig/color.h
+++ b/synfig-core/src/synfig/color.h
@@ -1028,10 +1028,10 @@ public:
inline
CairoColor::CairoColor(const CairoColorAccumulator& c){
- set_a(c.a_*CairoColor::range);
- set_r(c.r_*CairoColor::range);
- set_g(c.g_*CairoColor::range);
- set_b(c.b_*CairoColor::range);
+ set_a(CairoColor::clamp(c.a_*CairoColor::range));
+ set_r(CairoColor::clamp(c.r_*CairoColor::range));
+ set_g(CairoColor::clamp(c.g_*CairoColor::range));
+ set_b(CairoColor::clamp(c.b_*CairoColor::range));
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl