Author: Carlos Lopez <[email protected]>
Date: Sun Feb 17 12:46:51 2013 +0100
Check if passed target to AsyncRenderer is a Cairo target and store it.
This commit allows to use cairo_png as target to write to file on the render
dialog
---
synfig-studio/src/gui/asyncrenderer.cpp | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/synfig-studio/src/gui/asyncrenderer.cpp
b/synfig-studio/src/gui/asyncrenderer.cpp
index 0c5733a..7edb5b0 100644
--- a/synfig-studio/src/gui/asyncrenderer.cpp
+++ b/synfig-studio/src/gui/asyncrenderer.cpp
@@ -528,6 +528,19 @@ AsyncRenderer::AsyncRenderer(etl::handle<synfig::Target>
target_,synfig::Progres
target=wrap_target;
}
+ else if(etl::handle<synfig::Target_Cairo>::cast_dynamic(target_))
+ {
+ etl::handle<AsyncTarget_Cairo> wrap_target(
+ new AsyncTarget_Cairo(
+
etl::handle<synfig::Target_Cairo>::cast_dynamic(target_)
+ )
+ );
+
+
signal_stop_.connect(sigc::mem_fun(*wrap_target,&AsyncTarget_Cairo::set_dead));
+
+ target=wrap_target;
+ }
+
}
AsyncRenderer::~AsyncRenderer()
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl