projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hacks to stop scrolling track names.
[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 1947faa0bfcb4c694a8a5720a606458eb33939e3..c8808a62f5c6b35a0553f825918410171231988f 100644
(file)
--- a/
src/wx/timeline_time_axis_view.cc
+++ b/
src/wx/timeline_time_axis_view.cc
@@
-36,7
+36,7
@@
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
dcpomatic::Rect<int>
TimelineTimeAxisView::bbox () const
{
dcpomatic::Rect<int>
TimelineTimeAxisView::bbox () const
{
- return dcpomatic::Rect<int> (
_timeline.tracks_position().x
, _y - 4, _timeline.width(), 24);
+ return dcpomatic::Rect<int> (
0
, _y - 4, _timeline.width(), 24);
}
void
}
void
@@
-60,7
+60,7
@@
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>
double const mark_interval = calculate_mark_interval (rint (128 / pps));
wxGraphicsPath path = gc->CreatePath ();
double const mark_interval = calculate_mark_interval (rint (128 / pps));
wxGraphicsPath path = gc->CreatePath ();
- path.MoveToPoint (
_timeline.tracks_position().x
, _y);
+ path.MoveToPoint (
0
, _y);
path.AddLineToPoint (_timeline.width(), _y);
gc->StrokePath (path);
path.AddLineToPoint (_timeline.width(), _y);
gc->StrokePath (path);
@@
-88,7
+88,7
@@
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>
wxDouble str_leading;
gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading);
wxDouble str_leading;
gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading);
- int const tx =
_timeline.tracks_position().x +
t.seconds() * pps;
+ int const tx = t.seconds() * pps;
if ((tx + str_width) < _timeline.width()) {
gc->DrawText (str, time_x (t), _y + 16);
}
if ((tx + str_width) < _timeline.width()) {
gc->DrawText (str, time_x (t), _y + 16);
}