Author: Nikita Kitaev <[email protected]>
Date:   Thu Jun  2 22:31:08 2011 -0700

Don't begin_paint_rect() and end_paint() in the preview window

Fixes drawing issues on Windows and Fedora 11

---

 synfig-studio/src/gui/preview.cpp |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/synfig-studio/src/gui/preview.cpp 
b/synfig-studio/src/gui/preview.cpp
index afa9fba..59dabbf 100644
--- a/synfig-studio/src/gui/preview.cpp
+++ b/synfig-studio/src/gui/preview.cpp
@@ -555,11 +555,6 @@ bool studio::Widget_Preview::redraw(GdkEventExpose 
*/*heh*/)
        Glib::RefPtr<Gdk::Window>       wind = draw_area.get_window();
        Cairo::RefPtr<Cairo::Context> cr = wind->create_cairo_context();
 
-       {
-               Gdk::Rectangle 
r(0,0,draw_area.get_width(),draw_area.get_height());
-               draw_area.get_window()->begin_paint_rect(r);
-       }
-
        if(!wind) synfig::warning("The destination window is broken...");
 
        {
@@ -604,8 +599,6 @@ bool studio::Widget_Preview::redraw(GdkEventExpose */*heh*/)
                }
        }
 
-       draw_area.get_window()->end_paint();
-
        //synfig::warning("Refresh the draw area");
        //make sure the widget refreshes
 


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to