From 722eb3fd725cba195f0dc98082b62383cd2ca243 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 20 Apr 2014 20:58:00 +0200 Subject: Fix fade-in. --- dgedit/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgedit/player.cc b/dgedit/player.cc index 745052e..64b3067 100644 --- a/dgedit/player.cc +++ b/dgedit/player.cc @@ -90,7 +90,7 @@ void Player::run() double fade = 1; if(p < (sel.from + sel.fadein)) { // Apply linear fade-in - double fp = p - sel.from; + double fp = (double)((int)p - (int)sel.from); fade = fp / (double)sel.fadeout; } -- cgit v1.2.3