mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Fix drawing last collapsed non-contiguous frame.
This commit is contained in:
parent
56190c9614
commit
54baec9e7e
@ -1446,7 +1446,16 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
|
||||
if( prev != -1 )
|
||||
{
|
||||
DrawZigZag( draw, wpos + ImVec2( 0, round( ty / 2 ) ), ( prev - m_zvStart ) * pxns, ( m_worker.GetFrameBegin( frames, zrange.second-1 ) - m_zvStart ) * pxns, ty / 4, inactiveColor );
|
||||
if( frames.continuous )
|
||||
{
|
||||
DrawZigZag( draw, wpos + ImVec2( 0, round( ty / 2 ) ), ( prev - m_zvStart ) * pxns, ( m_worker.GetFrameBegin( frames, zrange.second-1 ) - m_zvStart ) * pxns, ty / 4, inactiveColor );
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto begin = ( prev - m_zvStart ) * pxns;
|
||||
const auto end = ( m_worker.GetFrameBegin( frames, zrange.second-1 ) - m_zvStart ) * pxns;
|
||||
DrawZigZag( draw, wpos + ImVec2( 0, round( ty / 2 ) ), begin, std::max( begin + MinFrameSize, end ), ty / 4, inactiveColor );
|
||||
}
|
||||
prev = -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user