]> Creatis software - clitk.git/blobdiff - tools/clitkMeshViewer.cxx
Portability issue
[clitk.git] / 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;