summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/timeline.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index de83e6ba3..d8e0e692e 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -190,10 +190,6 @@ Timeline::paint_main ()
ScopeGuard sg = [gc]() { delete gc; };
- int vsx, vsy;
- _main_canvas->GetViewStart (&vsx, &vsy);
- gc->Translate (-vsx * _x_scroll_rate, -vsy * _y_scroll_rate);
-
gc->SetAntialiasMode (wxANTIALIAS_DEFAULT);
for (auto i: _views) {
@@ -219,8 +215,6 @@ Timeline::paint_main ()
}
if (_zoom_point) {
- /* Translate back as _down_point and _zoom_point do not take scroll into account */
- gc->Translate (vsx * _x_scroll_rate, vsy * _y_scroll_rate);
gc->SetPen(gui_is_dark() ? *wxWHITE_PEN : *wxBLACK_PEN);
gc->SetBrush (*wxTRANSPARENT_BRUSH);
gc->DrawRectangle (