Add explicit VideoTimeline change-type, follow up on f73ce2d
authorRobin Gareus <robin@gareus.org>
Wed, 28 Jun 2017 16:46:07 +0000 (18:46 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 28 Jun 2017 16:46:07 +0000 (18:46 +0200)
gtk2_ardour/editor.cc
gtk2_ardour/editor.h

index 9750f58e9d50cbbeb16f8800fe5b62487ece5866..4a83bf65710ead1fe0e6112c8815c07aee25668d 100644 (file)
@@ -4557,13 +4557,7 @@ Editor::playhead_cursor_sample () const
 void
 Editor::queue_visual_videotimeline_update ()
 {
-       /* TODO:
-        * pending_visual_change.add (VisualChange::VideoTimeline);
-        * or maybe even more specific: which videotimeline-image
-        * currently it calls update_video_timeline() to update
-        * _all outdated_ images on the video-timeline.
-        * see 'exposeimg()' in video_image_frame.cc
-        */
+       pending_visual_change.add (VisualChange::VideoTimeline);
        ensure_visual_change_idle_handler ();
 }
 
@@ -4679,9 +4673,12 @@ Editor::visual_changer (const VisualChange& vc)
        if (vc.pending != VisualChange::YOrigin) {
                update_fixed_rulers ();
                redisplay_tempo (true);
-       }
 
-       update_video_timeline();
+               /* video frames & position need to be updated for zoom, horiz-scroll
+                * and (explicitly) VisualChange::VideoTimeline.
+                */
+               update_video_timeline();
+       }
 
        _summary->set_overlays_dirty ();
 }
index 633329541e883bd32276957f276b363c60805516..6e1ae4528d8c3301e3977d818d607c945a6dc5a7 100644 (file)
@@ -1130,7 +1130,8 @@ private:
                enum Type {
                        TimeOrigin = 0x1,
                        ZoomLevel = 0x2,
-                       YOrigin = 0x4
+                       YOrigin = 0x4,
+                       VideoTimeline = 0x8
                };
 
                Type       pending;