Pass yMin, yMax through TimelineContext.

This commit is contained in:
Bartosz Taudul
2023-03-15 23:56:57 +01:00
parent c81ef177ab
commit 9538fa99ca
11 changed files with 21 additions and 18 deletions

View File

@@ -104,9 +104,9 @@ int64_t TimelineItemPlot::RangeEnd() const
return m_plot->data.back().time.Val();
}
bool TimelineItemPlot::DrawContents( const TimelineContext& ctx, int& offset, bool hover, float yMin, float yMax )
bool TimelineItemPlot::DrawContents( const TimelineContext& ctx, int& offset, bool hover )
{
return m_view.DrawPlot( *m_plot, ctx.pxns, offset, ctx.wpos, hover, yMin, yMax );
return m_view.DrawPlot( *m_plot, ctx.pxns, offset, ctx.wpos, hover, ctx.yMin, ctx.yMax );
}
}