diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-03 23:39:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-03 23:39:36 +0100 |
| commit | c257dde2b276dd4cb416faf63fd50c0ff1ace953 (patch) | |
| tree | f11e3353f45bcd800b9f3e24d91ec8d3114c11b2 /src | |
| parent | 5a9373e48aa575c70bd32b4b48eb6b9b8634a4fc (diff) | |
Fix time axis view length.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timeline.cc | 6 | ||||
| -rw-r--r-- | src/wx/timeline.h | 4 | ||||
| -rw-r--r-- | src/wx/timeline_time_axis_view.cc | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 480f6d690..8d76e4cae 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -751,3 +751,9 @@ Timeline::tracks_y_offset () const { return _reels_view->bbox().height + 4; } + +int +Timeline::width () const +{ + return _main_canvas->GetVirtualSize().GetWidth(); +} diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 503025f3c..1ec633085 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -44,9 +44,7 @@ public: void force_redraw (dcpomatic::Rect<int> const &); - int width () const { - return GetVirtualSize().GetWidth (); - } + int width () const; int track_height () const { return _track_height; diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc index 1d7aefb73..48157c9c5 100644 --- a/src/wx/timeline_time_axis_view.cc +++ b/src/wx/timeline_time_axis_view.cc @@ -25,6 +25,7 @@ #include <wx/graphics.h> using std::list; +using std::cout; TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y) : TimelineView (tl) |
