From dd0c283a3bffa5da458fab72dd6d2451c2bbd33d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Sep 2017 22:59:11 +0200 Subject: [PATCH] More condensed child zone time graph. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d7478a10..673158b4 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1303,6 +1303,7 @@ void View::DrawZoneInfoWindow() if( !ev.child.empty() ) { + const auto ty = ImGui::GetTextLineHeight(); ImGui::Columns( 2 ); ImGui::Separator(); ImGui::Text( "Child zones: %" PRIu64, ev.child.size() ); @@ -1339,7 +1340,7 @@ void View::DrawZoneInfoWindow() const auto part = double( ctt[cti[i]] ) / ztime; char buf[128]; sprintf( buf, "%s (%.2f%%)", TimeToString( ctt[cti[i]] ), part * 100 ); - ImGui::ProgressBar( part, ImVec2( -1, 0 ), buf ); + ImGui::ProgressBar( part, ImVec2( -1, ty ), buf ); ImGui::NextColumn(); } ImGui::EndColumns();