mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Notify TimelineItem when drawing has finished.
This commit is contained in:
@@ -48,6 +48,7 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
|
||||
{
|
||||
if( !DrawContents( ctx, yEnd ) && !m_view.GetViewData().drawEmptyLabels )
|
||||
{
|
||||
DrawFinished();
|
||||
yEnd = yBegin;
|
||||
AdjustThreadHeight( firstFrame, yBegin, yEnd );
|
||||
ImGui::PopClipRect();
|
||||
@@ -57,6 +58,7 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
|
||||
}
|
||||
|
||||
DrawOverlay( wpos + ImVec2( 0, yBegin ), wpos + ImVec2( w, yEnd ) );
|
||||
DrawFinished();
|
||||
ImGui::PopClipRect();
|
||||
|
||||
float labelWidth;
|
||||
|
||||
Reference in New Issue
Block a user