Author: Carlos Lopez <[email protected]>
Date:   Tue Oct 23 20:49:47 2012 +0200

Twirl: Add get_cairocolor function

---

 synfig-core/src/modules/lyr_std/twirl.cpp |    7 +++++++
 synfig-core/src/modules/lyr_std/twirl.h   |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/modules/lyr_std/twirl.cpp 
b/synfig-core/src/modules/lyr_std/twirl.cpp
index ba98318..fa4d82d 100644
--- a/synfig-core/src/modules/lyr_std/twirl.cpp
+++ b/synfig-core/src/modules/lyr_std/twirl.cpp
@@ -176,6 +176,13 @@ Twirl::get_color(Context context, const Point &pos)const
        return context.get_color(distort(pos));
 }
 
+CairoColor
+Twirl::get_cairocolor(Context context, const Point &pos)const
+{
+       return context.get_cairocolor(distort(pos));
+}
+
+
 class Twirl_Trans : public Transform
 {
        etl::handle<const Twirl> layer;
diff --git a/synfig-core/src/modules/lyr_std/twirl.h 
b/synfig-core/src/modules/lyr_std/twirl.h
index 11d893e..4326b2f 100644
--- a/synfig-core/src/modules/lyr_std/twirl.h
+++ b/synfig-core/src/modules/lyr_std/twirl.h
@@ -69,6 +69,7 @@ public:
        virtual synfig::ValueBase get_param(const synfig::String & param)const;
 
        virtual synfig::Color get_color(synfig::Context context, const 
synfig::Point &pos)const;
+       virtual synfig::CairoColor get_cairocolor(synfig::Context context, 
const synfig::Point &pos)const;
 
        //virtual bool accelerated_render(synfig::Context 
context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, 
synfig::ProgressCallback *cb)const;
 


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to