From: pabs Date: Sun, 11 Mar 2007 07:15:57 +0000 (+0000) Subject: Partially fix 1678141: add an int to ColorAccumulator converter, same as the Color one X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d9847f018f900d8ca0d7c63ff9d37eaa034d6af0;p=synfig.git Partially fix 1678141: add an int to ColorAccumulator converter, same as the Color one git-svn-id: http://svn.voria.com/code@289 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/color.h b/synfig-core/trunk/src/synfig/color.h index 2df724f..dcd7629 100644 --- a/synfig-core/trunk/src/synfig/color.h +++ b/synfig-core/trunk/src/synfig/color.h @@ -632,6 +632,9 @@ public: g_(c.g_), b_(c.b_) { } + //! Converter + ColorAccumulator(int c): a_(c),r_(c), g_(c), b_(c) { } + //! Returns the RED component const value_type& get_r()const { return r_; }