From c06ea4a3e895bbcf9a10db3a855e4d1edcbbeca1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Mar 2020 23:04:50 +0100 Subject: [PATCH] Fix layout. --- server/TracyView.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c1abb01c..ce57f72a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2509,7 +2509,17 @@ void View::DrawZones() if( showFull ) { const auto sampleOffset = offset; - if( m_vd.drawSamples && !v->samples.empty() ) offset += round( ostep * 0.5f ); + if( m_vd.drawSamples && !v->samples.empty() ) + { + if( m_vd.drawContextSwitches ) + { + offset += round( ostep * 0.5f ); + } + else + { + offset += round( ostep * 0.75f ); + } + } const auto ctxOffset = offset; if( m_vd.drawContextSwitches ) offset += round( ostep * 0.75f );