mirror of
https://github.com/wolfpld/tracy
synced 2025-05-06 07:03:52 +00:00
Sort annotations.
This commit is contained in:
parent
5c47467c88
commit
6de8e6987f
@ -1433,6 +1433,7 @@ void View::HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, d
|
|||||||
ann->color = 0x888888;
|
ann->color = 0x888888;
|
||||||
m_selectedAnnotation = ann.get();
|
m_selectedAnnotation = ann.get();
|
||||||
m_annotations.emplace_back( std::move( ann ) );
|
m_annotations.emplace_back( std::move( ann ) );
|
||||||
|
pdqsort_branchless( m_annotations.begin(), m_annotations.end(), []( const auto& lhs, const auto& rhs ) { return lhs->start < rhs->start; } );
|
||||||
}
|
}
|
||||||
m_highlight.active = false;
|
m_highlight.active = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user