This appears not to be necessary, and if present it messes up the scrollbars
so that scrolling fully right shows a big empty space at the end of the
timeline items.
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) {
}
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 (