Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2021-01-22 04:34:01 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2021-01-22 04:34:01 +0300
commitefc856f842df20896c2be0663a074c6f4a7596b7 (patch)
treeec5e915d4deca97a96fa27b9bce579357418d0bd
parent239a17deb93587c897a16af18764f74ea8f5ca06 (diff)
Fix vertical padding of items in CPU data table.
-rw-r--r--server/TracyView.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 0280c874..164eca2f 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -14952,6 +14952,8 @@ void View::DrawCpuDataWindow()
const auto rtimespan = 1.0 / m_worker.GetLastTime();
const auto ty = ImGui::GetTextLineHeight();
+ auto& style = ImGui::GetStyle();
+ const auto framePaddingY = style.FramePadding.y;
for( auto& pidit : psort )
{
ImGui::TableNextRow();
@@ -14996,7 +14998,9 @@ void View::DrawCpuDataWindow()
}
ImGui::TableNextColumn();
PrintStringPercent( buf, TimeToString( pid.second.data.runningTime ), double( pid.second.data.runningTime ) * rtimespan * 100 );
+ style.FramePadding.y = 0;
ImGui::ProgressBar( double( pid.second.data.runningTime ) * rtimespan, ImVec2( -1, ty ), buf );
+ style.FramePadding.y = framePaddingY;
ImGui::TableNextColumn();
ImGui::TextUnformatted( RealToString( pid.second.data.runningRegions ) );
ImGui::TableNextColumn();
@@ -15109,7 +15113,9 @@ void View::DrawCpuDataWindow()
}
ImGui::TableNextColumn();
PrintStringPercent( buf, TimeToString( tit->second.runningTime ), double( tit->second.runningTime ) * rtimespan * 100 );
+ style.FramePadding.y = 0;
ImGui::ProgressBar( double( tit->second.runningTime ) * rtimespan, ImVec2( -1, ty ), buf );
+ style.FramePadding.y = framePaddingY;
ImGui::TableNextColumn();
ImGui::TextUnformatted( RealToString( tit->second.runningRegions ) );
ImGui::TableNextColumn();