changeset 1045:ab1378fc4f72

mainLoop is not a part of mainLoop in viwer.... move application_task
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 08 Dec 2010 00:39:28 +0900
parents 150412ed980a
children 8c75060eb153
files Renderer/Engine/viewer.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc	Wed Dec 08 00:05:31 2010 +0900
+++ b/Renderer/Engine/viewer.cc	Wed Dec 08 00:39:28 2010 +0900
@@ -293,7 +293,6 @@
 {
     HTaskPtr task_next = initLoop();
 
-    task_next = app->application_task(task_next, this);
     task_next->set_post(&post2runLoop, (void *)this, (void*)pixels); // set_post(function(this->run_loop()), NULL)
     task_next->spawn();
 }
@@ -301,6 +300,7 @@
 void
 Viewer::run_loop(HTaskPtr task_next)
 {
+    task_next = app->application_task(task_next, this);
     dev->clear_screen();
 
     bool quit_flg;