1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Don't merge zones of different color.

This commit is contained in:
Bartosz Taudul 2017-09-25 23:17:08 +02:00
parent fb970170e0
commit d797099076

View File

@ -1019,6 +1019,7 @@ int View::DrawZoneLevel( const Vector<Event*>& vec, bool hover, double pxns, con
{
++it;
if( it == zitend ) break;
if( (*it)->color != ev.color ) break;
const auto nend = GetZoneEnd( **it );
const auto pxnext = ( nend - m_zvStart ) * pxns;
if( pxnext - px1 >= MinVisSize * 2 ) break;