Remove privilege escalation via seteuid() etc. on Linux.
[dcpomatic.git] / src / wx / video_panel.cc
index 6cb3bfc87680ca3f98f08d05a1bac1c758dd6b72..ef111f7ecfe8c6a930ad4ad56697fbd9ba849f80 100644 (file)
@@ -89,6 +89,10 @@ VideoPanel::VideoPanel (ContentPanel* p)
        int const crop_width = 128;
        int const link_width = 32;
        int const link_height = 64;
+#elif defined(__WXGTK20__)
+       int const crop_width = 56;
+       int const link_width = 24;
+       int const link_height = 32;
 #elif defined(DCPOMATIC_OSX)
        int const crop_width = 56;
        int const link_width = 19;
@@ -635,18 +639,20 @@ VideoPanel::setup_sensitivity ()
 void
 VideoPanel::fade_in_changed ()
 {
-       for (auto i: _parent->selected_video ()) {
+       auto const hmsf = _fade_in->get();
+       for (auto i: _parent->selected_video()) {
                double const vfr = i->active_video_frame_rate (_parent->film());
-               i->video->set_fade_in (_fade_in->get(vfr).frames_round(vfr));
+               i->video->set_fade_in (dcpomatic::ContentTime(hmsf, vfr).frames_round(vfr));
        }
 }
 
 void
 VideoPanel::fade_out_changed ()
 {
-       for (auto i: _parent->selected_video ()) {
+       auto const hmsf = _fade_out->get();
+       for (auto i: _parent->selected_video()) {
                double const vfr = i->active_video_frame_rate (_parent->film());
-               i->video->set_fade_out (_fade_out->get(vfr).frames_round(vfr));
+               i->video->set_fade_out (dcpomatic::ContentTime(hmsf, vfr).frames_round(vfr));
        }
 }