Browse Source

- add fix for video recorders IsoTimer getTime()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8706 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
fa68e89e6c

+ 1 - 1
engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java

@@ -58,7 +58,7 @@ public class VideoRecorderAppState extends AbstractAppState {
         }
         }
 
 
         public long getTime() {
         public long getTime() {
-            return (long) (this.ticks / this.framerate);
+            return (long) (this.ticks * (1.0f / this.framerate));
         }
         }
 
 
         public long getResolution() {
         public long getResolution() {