Author: Carlos Lopez <[email protected]>
Date:   Sun Apr 21 18:12:40 2013 +0200

Dock Navigator: Before start painting, clear the surface.

---

 synfig-studio/src/gui/docks/dock_navigator.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/synfig-studio/src/gui/docks/dock_navigator.cpp 
b/synfig-studio/src/gui/docks/dock_navigator.cpp
index 4dda522..99a35a5 100644
--- a/synfig-studio/src/gui/docks/dock_navigator.cpp
+++ b/synfig-studio/src/gui/docks/dock_navigator.cpp
@@ -148,6 +148,11 @@ void studio::Widget_NavView::on_start_render()
 
                if(studio::App::navigator_uses_cairo)
                {
+                       // First clear the surface
+                       cairo_t* cr = cairo_create(cairo_surface);
+                       cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
+                       cairo_paint(cr);
+                       cairo_destroy(cr);
                        // Create a cairo_image_target
                        etl::handle<Target_Cairo> targ = 
cairo_image_target(&cairo_surface);
                        // Fill the target with the proper information


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to