mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Fix layout.
This commit is contained in:
parent
8e1333468d
commit
c06ea4a3e8
@ -2509,7 +2509,17 @@ void View::DrawZones()
|
|||||||
if( showFull )
|
if( showFull )
|
||||||
{
|
{
|
||||||
const auto sampleOffset = offset;
|
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;
|
const auto ctxOffset = offset;
|
||||||
if( m_vd.drawContextSwitches ) offset += round( ostep * 0.75f );
|
if( m_vd.drawContextSwitches ) offset += round( ostep * 0.75f );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user