From 3976408550b73ed10e7a1e5eeb5e4fdf7b50265c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 13 Oct 2020 18:14:26 +0200 Subject: [PATCH] Adapt to non-obsolete ImGuiListClipper interface. --- server/TracySourceView.cpp | 9 ++++++--- server/TracyView.cpp | 18 ++++++++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 10746fdd..756b6a63 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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 ctt[rhs]; } ); - ImGuiListClipper clipper( cgr.v.size() ); + ImGuiListClipper clipper; + clipper.Begin( cgr.v.size() ); while( clipper.Step() ) { for( auto i=clipper.DisplayStart; i>& zones ) } } - ImGuiListClipper clipper( zonesToIterate->size() ); + ImGuiListClipper clipper; + clipper.Begin( zonesToIterate->size() ); while( clipper.Step() ) { for( auto i=clipper.DisplayStart; i& vec, std::function