mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Only clip timeline item contents.
Timeline item header may overflow over other items, e.g. the crash marker is taller than the header line.
This commit is contained in:
parent
840709fe46
commit
5cbf06ba31
@ -53,6 +53,8 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::PopClipRect();
|
||||
|
||||
float labelWidth;
|
||||
const auto hdrOffset = oldOffset;
|
||||
const bool drawHeader = yPos + ty >= yMin && yPos <= yMax;
|
||||
@ -110,7 +112,6 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
|
||||
offset += 0.2f * ostep;
|
||||
AdjustThreadHeight( firstFrame, oldOffset, offset );
|
||||
|
||||
ImGui::PopClipRect();
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user