1
0
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:
Tomaž Vöröš
2023-01-27 20:00:05 +01:00
parent 52b6af88ca
commit 7b9b810421
5 changed files with 37 additions and 30 deletions
+1 -2
View File
@@ -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;