]> Creatis software - clitk.git/commitdiff
Portability issue
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 23 Jun 2011 17:46:07 +0000 (19:46 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 23 Jun 2011 17:46:07 +0000 (19:46 +0200)
tools/clitkMeshViewer.cxx

index 3cfffbbb57f7d8adea6864bf9befe04316565caa..c21bc4e43f31cf7e9d64936076b1411ad4562d48 100644 (file)
@@ -75,7 +75,7 @@ public:
       
       m_rActors[m_CurrentActor]->SetVisibility(0);
       
-      int step = round(m_Fps * info->AnimationTime);
+      int step = lrint(m_Fps * info->AnimationTime);
       int actor = step % m_rActors.size();
       
       //if (actor != m_CurrentActor) std::cout << "Showing frame: " << m_CurrentActor << std::endl;