mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 21:23:52 +00:00
Add DrawFinished() to early exit paths.
This commit is contained in:
parent
e62a383833
commit
060bab357d
@ -27,10 +27,15 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
|
|||||||
|
|
||||||
if( !IsVisible() )
|
if( !IsVisible() )
|
||||||
{
|
{
|
||||||
|
DrawFinished();
|
||||||
if( m_height != 0 ) AdjustThreadHeight( firstFrame, yBegin, yEnd );
|
if( m_height != 0 ) AdjustThreadHeight( firstFrame, yBegin, yEnd );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( IsEmpty() ) return;
|
if( IsEmpty() )
|
||||||
|
{
|
||||||
|
DrawFinished();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto w = ctx.w;
|
const auto w = ctx.w;
|
||||||
const auto ty = ctx.ty;
|
const auto ty = ctx.ty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user