projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply fader-based gain calculations to the current gain, not 0dB.
[dcpomatic.git]
/
src
/
wx
/
timeline_time_axis_view.cc
diff --git
a/src/wx/timeline_time_axis_view.cc
b/src/wx/timeline_time_axis_view.cc
index 1d7aefb738d4df0bcdf758bdfec9a2fa5343749a..e9de1b542fab6b1777993b09a920009d420903bc 100644
(file)
--- a/
src/wx/timeline_time_axis_view.cc
+++ b/
src/wx/timeline_time_axis_view.cc
@@
-25,6
+25,8
@@
#include <wx/graphics.h>
using std::list;
#include <wx/graphics.h>
using std::list;
+using std::cout;
+using namespace dcpomatic;
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
@@
-60,7
+62,7
@@
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>
double const mark_interval = calculate_mark_interval (rint (128 / pps));
double const mark_interval = calculate_mark_interval (rint (128 / pps));
- int y = _y * _timeline.
track_height
() + 32;
+ int y = _y * _timeline.
pixels_per_track
() + 32;
wxGraphicsPath path = gc->CreatePath ();
path.MoveToPoint (0, y);
wxGraphicsPath path = gc->CreatePath ();
path.MoveToPoint (0, y);