mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Adapt to non-obsolete ImGuiListClipper interface.
This commit is contained in:
parent
b2c214595a
commit
3976408550
@ -938,7 +938,8 @@ void SourceView::RenderSimpleSourceView()
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGuiListClipper clipper( (int)m_lines.size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( (int)m_lines.size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -1512,7 +1513,8 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGuiListClipper clipper( (int)m_lines.size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( (int)m_lines.size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
if( iptotal == 0 )
|
||||
@ -1786,7 +1788,8 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
||||
else
|
||||
{
|
||||
const auto th = (int)ImGui::GetTextLineHeightWithSpacing();
|
||||
ImGuiListClipper clipper( (int)m_asm.size(), th );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( (int)m_asm.size(), th );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
assert( clipper.StepNo == 3 );
|
||||
|
@ -7102,7 +7102,8 @@ void View::DrawZoneInfoWindow()
|
||||
ImGui::NextColumn();
|
||||
ImGui::Separator();
|
||||
const auto wrsz = eit - bit;
|
||||
ImGuiListClipper clipper( wrsz );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( wrsz );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -7717,7 +7718,8 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime )
|
||||
|
||||
pdqsort_branchless( cti.get(), cti.get() + cgr.v.size(), [&ctt] ( const auto& lhs, const auto& rhs ) { return ctt[lhs] > ctt[rhs]; } );
|
||||
|
||||
ImGuiListClipper clipper( cgr.v.size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( cgr.v.size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -7779,7 +7781,8 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime )
|
||||
PrintStringPercent( buf, TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 );
|
||||
ImGui::ProgressBar( double( ztime - ctime ) * rztime, ImVec2( -1, ty ), buf );
|
||||
ImGui::NextColumn();
|
||||
ImGuiListClipper clipper( children.size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( children.size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -9118,7 +9121,8 @@ void View::DrawMessages()
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGuiListClipper clipper( m_msgList.size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( m_msgList.size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -10809,7 +10813,8 @@ void View::DrawZoneList( const Vector<short_ptr<ZoneEvent>>& zones )
|
||||
}
|
||||
}
|
||||
|
||||
ImGuiListClipper clipper( zonesToIterate->size() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( zonesToIterate->size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
@ -15312,7 +15317,8 @@ void View::ListMemData( std::vector<const MemEvent*>& vec, std::function<void(co
|
||||
}
|
||||
|
||||
int idx = 0;
|
||||
ImGuiListClipper clipper( vec.end() - vec.begin() );
|
||||
ImGuiListClipper clipper;
|
||||
clipper.Begin( vec.end() - vec.begin() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
|
Loading…
Reference in New Issue
Block a user