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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user