summaryrefslogtreecommitdiff
path: root/src/dcp_time.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-21 21:38:37 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-21 21:38:37 +0100
commitfd23bf276facab3892a00f010ac7e991bc79af09 (patch)
tree2ee3c0e6cfd318bfc14c5fca7c29c9031a570a69 /src/dcp_time.cc
parent3541f4c9bd91169e55a82b9fa46767b46ca06188 (diff)
Pick up effect and effect color.
Diffstat (limited to 'src/dcp_time.cc')
-rw-r--r--src/dcp_time.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index 900d7c6e..0cc6b264 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -35,7 +35,7 @@ Time::Time (int frame, int frames_per_second)
, t (0)
{
float sec_float = float (frame) / frames_per_second;
- t = (int (sec_float * 1000) % 1000) / 4;
+ t = (int (floor (sec_float * 1000)) % 1000) / 4;
s = floor (sec_float);
if (s > 60) {