mirror of
https://github.com/wolfpld/tracy
synced 2025-05-04 14:23:51 +00:00
Don't merge zones of different color.
This commit is contained in:
parent
fb970170e0
commit
d797099076
@ -1019,6 +1019,7 @@ int View::DrawZoneLevel( const Vector<Event*>& vec, bool hover, double pxns, con
|
|||||||
{
|
{
|
||||||
++it;
|
++it;
|
||||||
if( it == zitend ) break;
|
if( it == zitend ) break;
|
||||||
|
if( (*it)->color != ev.color ) break;
|
||||||
const auto nend = GetZoneEnd( **it );
|
const auto nend = GetZoneEnd( **it );
|
||||||
const auto pxnext = ( nend - m_zvStart ) * pxns;
|
const auto pxnext = ( nend - m_zvStart ) * pxns;
|
||||||
if( pxnext - px1 >= MinVisSize * 2 ) break;
|
if( pxnext - px1 >= MinVisSize * 2 ) break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user