Author: Carlos Lopez <[email protected]>
Date: Tue Aug 14 19:43:16 2012 +0200
Star: add support for Cairo render.
---
synfig-core/src/modules/mod_geometry/star.cpp | 8 ++++++++
synfig-core/src/modules/mod_geometry/star.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/star.cpp
b/synfig-core/src/modules/mod_geometry/star.cpp
index d28c8c8..bad207d 100644
--- a/synfig-core/src/modules/mod_geometry/star.cpp
+++ b/synfig-core/src/modules/mod_geometry/star.cpp
@@ -99,6 +99,7 @@ Star::sync()
}
clear();
add_polygon(vector_list);
+ upload_polygon(vector_list);
}
bool
@@ -209,3 +210,10 @@ Star::get_param_vocab()const
return ret;
}
+//////
+bool
+Star::accelerated_cairorender(Context context,cairo_surface_t *surface,int
quality, const RendDesc &renddesc, ProgressCallback *cb)const
+{
+ return Layer_Polygon::accelerated_cairorender(context, surface,
quality, renddesc, cb);
+}
+/////
\ No newline at end of file
diff --git a/synfig-core/src/modules/mod_geometry/star.h
b/synfig-core/src/modules/mod_geometry/star.h
index e7decc8..f0a9975 100644
--- a/synfig-core/src/modules/mod_geometry/star.h
+++ b/synfig-core/src/modules/mod_geometry/star.h
@@ -65,6 +65,7 @@ public:
virtual ValueBase get_param(const String & param)const;
virtual Vocab get_param_vocab()const;
+ virtual bool accelerated_cairorender(Context context,cairo_surface_t
*surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
};
/* === E N D =============================================================== */
------------------------------------------------------------------------------
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