From: dooglus Date: Mon, 17 Sep 2007 13:34:22 +0000 (+0000) Subject: Fixed the View>Play menu entry properly. It now waits for each frame to display... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b9f0f0c6a31cc9c651469d2f0195cba8af04f8e5;p=synfig.git 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 --- 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;