1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

New TimelineController begin/end logic.

This commit is contained in:
Bartosz Taudul
2022-09-03 16:45:53 +02:00
parent 8034fce416
commit 9355a14657
3 changed files with 15 additions and 3 deletions
+11 -1
View File
@@ -20,8 +20,18 @@ void TimelineController::FirstFrameExpired()
m_firstFrame = false;
}
void TimelineController::End( float offset )
void TimelineController::Begin()
{
m_items.clear();
}
void TimelineController::End( double pxns, int offset, const ImVec2& wpos, bool hover, float yMin, float yMax )
{
for( auto& item : m_items )
{
item->Draw( m_firstFrame, pxns, offset, wpos, hover, yMin, yMax );
}
const auto scrollPos = ImGui::GetScrollY();
if( scrollPos == 0 && m_scroll != 0 )
{