mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Refactor the use of offset in TimelineItem::Draw() and TimelineController::End().
This commit is contained in:
@@ -341,7 +341,6 @@ void View::DrawTimeline()
|
||||
draw = ImGui::GetWindowDrawList();
|
||||
|
||||
const auto ty = ImGui::GetTextLineHeight();
|
||||
int offset = 0;
|
||||
const auto to = 9.f;
|
||||
const auto th = ( ty - to ) * sqrt( 3 ) * 0.5;
|
||||
|
||||
@@ -381,7 +380,7 @@ void View::DrawTimeline()
|
||||
}
|
||||
}
|
||||
|
||||
m_tc.End( pxns, offset, wpos, hover, yMin, yMax );
|
||||
m_tc.End( pxns, wpos, hover, yMin, yMax );
|
||||
ImGui::EndChild();
|
||||
|
||||
m_lockHighlight = m_nextLockHighlight;
|
||||
|
||||
Reference in New Issue
Block a user