[vlmc-devel] Timeline: Don' t change the scale of the timeline by making unit a multiple of fps

Yikai Lu git at videolan.org
Tue Jul 26 16:12:47 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 21:52:29 2016 +0900| [2a33e09fe8e229422ec6cfa59502c5f73a400824] | committer: Yikai Lu

Timeline: Don't change the scale of the timeline by making unit a multiple of fps

> https://code.videolan.org/videolan/vlmc/commit/2a33e09fe8e229422ec6cfa59502c5f73a400824
---

 src/Gui/timeline/main.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index dc16329..310ad59 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -274,7 +274,8 @@ Rectangle {
             newUnit = mUnit;
         }
 
-        // Make unit a multiple of fps. This can change the scale but let's ignore it.
+        // Make unit a multiple of fps.
+        newPpu *= ( newUnit - ( newUnit % mUnit ) ) / newUnit;
         newUnit -= newUnit % mUnit;
 
         // If "almost" the same value, don't bother redrawing the ruler.



More information about the Vlmc-devel mailing list