From 8d418760c07ce001dbcfecb3855f3b0fb2dcb3e7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 4 Oct 2024 22:34:40 +0200 Subject: [PATCH] Statistics view also can have no entries to display. --- profiler/src/profiler/TracyView_Samples.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Samples.cpp b/profiler/src/profiler/TracyView_Samples.cpp index f487d8a7..be666f6f 100644 --- a/profiler/src/profiler/TracyView_Samples.cpp +++ b/profiler/src/profiler/TracyView_Samples.cpp @@ -109,7 +109,11 @@ void View::DrawSamplesStatistics( Vector& data, int64_t timeRange, Accu if( data.empty() ) { - ImGui::TextUnformatted( "No entries to be displayed." ); + ImGui::PushFont( m_bigFont ); + ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) ); + TextCentered( ICON_FA_HIPPO ); + TextCentered( "No entries to be displayed" ); + ImGui::PopFont(); } else {