1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-01 13:13:53 +00:00

Fix layout.

This commit is contained in:
Bartosz Taudul 2020-03-16 23:04:50 +01:00
parent 8e1333468d
commit c06ea4a3e8

View File

@ -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 );