projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
79a6fb7
)
Use round() when moving the slider - try to make it the same as trim so that there...
v2.13.15
author
Carl Hetherington
<cth@carlh.net>
Wed, 18 Apr 2018 00:27:28 +0000
(
01:27
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 18 Apr 2018 00:27:28 +0000
(
01:27
+0100)
src/wx/film_viewer.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index ccb2b790de4fe816e03c7846967ebff5b581b1b4..2c0712e92bfb282a16fc34921b5f5c004d7103cf 100644
(file)
--- a/
src/wx/film_viewer.cc
+++ b/
src/wx/film_viewer.cc
@@
-421,6
+421,7
@@
FilmViewer::slider_moved (bool page)
}
DCPTime t (_slider->GetValue() * _film->length().get() / 4096);
+ t = t.round (_film->video_frame_rate());
/* Ensure that we hit the end of the film at the end of the slider */
if (t >= _film->length ()) {
t = _film->length() - one_video_frame();