Add explicit VideoTimeline change-type, follow up on f73ce2d

This commit is contained in:
Robin Gareus 2017-06-28 18:46:07 +02:00
parent f73ce2d47f
commit a9224abcf4
2 changed files with 8 additions and 10 deletions

View file

@ -4557,13 +4557,7 @@ Editor::playhead_cursor_sample () const
void void
Editor::queue_visual_videotimeline_update () Editor::queue_visual_videotimeline_update ()
{ {
/* TODO: pending_visual_change.add (VisualChange::VideoTimeline);
* 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
*/
ensure_visual_change_idle_handler (); ensure_visual_change_idle_handler ();
} }
@ -4679,9 +4673,12 @@ Editor::visual_changer (const VisualChange& vc)
if (vc.pending != VisualChange::YOrigin) { if (vc.pending != VisualChange::YOrigin) {
update_fixed_rulers (); update_fixed_rulers ();
redisplay_tempo (true); redisplay_tempo (true);
}
/* video frames & position need to be updated for zoom, horiz-scroll
* and (explicitly) VisualChange::VideoTimeline.
*/
update_video_timeline(); update_video_timeline();
}
_summary->set_overlays_dirty (); _summary->set_overlays_dirty ();
} }

View file

@ -1130,7 +1130,8 @@ private:
enum Type { enum Type {
TimeOrigin = 0x1, TimeOrigin = 0x1,
ZoomLevel = 0x2, ZoomLevel = 0x2,
YOrigin = 0x4 YOrigin = 0x4,
VideoTimeline = 0x8
}; };
Type pending; Type pending;