From b9f0f0c6a31cc9c651469d2f0195cba8af04f8e5 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 17 Sep 2007 13:34:22 +0000 Subject: [PATCH] Fixed the View>Play menu entry properly. It now waits for each frame to display before rendering the next one. git-svn-id: http://svn.voria.com/code@689 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 08b6ded..15608e9 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -2821,7 +2821,9 @@ CanvasView::play() if(!work_area->sync_render_preview()) break; - studio::App::iteration(false); + // wait for the workarea to refresh itself + while (studio::App::events_pending()) + studio::App::iteration(false); if(get_cancel_status()) return; -- 2.7.4