Skip to content

Commit

Permalink
CairoColorAccumulator: clamp the result when converting to CairoColor
Browse files Browse the repository at this point in the history
  • Loading branch information
genete committed Sep 18, 2012
1 parent 9df34f3 commit 475b591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synfig-core/src/synfig/color.h
Expand Up @@ -1028,10 +1028,10 @@ class CairoColor

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));
}


Expand Down

0 comments on commit 475b591

Please sign in to comment.