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
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-03 22:11:36 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 22:11:36 +0300
commit5c90fe7a6e499420035c81355b202026ee58c1b0 (patch)
tree256af927f2a0ee0e2b3740e5a59ec66b824a554f /server
parent6abce4e0c9bd1bd3b0f475ded29163ad9d168f58 (diff)
Use the indented spacing.
Plots for some reason were packed tighter.
Diffstat (limited to 'server')
-rw-r--r--server/TracyTimelineItem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp
index 586151e9..8bd8d9ce 100644
--- a/server/TracyTimelineItem.cpp
+++ b/server/TracyTimelineItem.cpp
@@ -30,6 +30,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
const auto w = ImGui::GetContentRegionAvail().x - 1;
const auto ty = ImGui::GetTextLineHeight();
+ const auto ostep = ty + 1;
const auto yPos = AdjustThreadPosition( wpos.y, offset );
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
const auto oldOffset = offset;
@@ -88,7 +89,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
}
auto hdrOffset = offset;
- offset += ty;
+ offset += ostep;
if( m_showFull )
{
DrawContents( pxns, offset, wpos, hover, yMin, yMax );
@@ -98,7 +99,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
}
}
- offset += 0.2 * ty;
+ offset += 0.2f * ostep;
AdjustThreadHeight( firstFrame, oldOffset, offset );
ImGui::PopClipRect();