mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Push timline context to Draw and DrawContents functions.
This commit is contained in:
@@ -38,9 +38,9 @@ int64_t TimelineItemCpuData::RangeEnd() const
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool TimelineItemCpuData::DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax )
|
||||
bool TimelineItemCpuData::DrawContents( const TimelineContext& ctx, int& offset, bool hover, float yMin, float yMax )
|
||||
{
|
||||
return m_view.DrawCpuData( pxns, offset, wpos, hover, yMin, yMax );
|
||||
return m_view.DrawCpuData( ctx.pxns, offset, ctx.wpos, hover, yMin, yMax );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user