mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +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;
|
float labelWidth;
|
||||||
const auto hdrOffset = oldOffset;
|
const auto hdrOffset = oldOffset;
|
||||||
const bool drawHeader = yPos + ty >= yMin && yPos <= yMax;
|
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;
|
offset += 0.2f * ostep;
|
||||||
AdjustThreadHeight( firstFrame, oldOffset, offset );
|
AdjustThreadHeight( firstFrame, oldOffset, offset );
|
||||||
|
|
||||||
ImGui::PopClipRect();
|
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user