From b99675ae60a693c5b515eb74e3663d45b069b056 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Sep 2019 20:34:55 +0200 Subject: [PATCH] Use thread color for collapsed zones. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6a049d7b..21b3e140 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2829,11 +2829,11 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, while( it < zitend ) { auto& ev = **it; - const auto color = GetZoneColor( ev, tid, depth ); const auto end = m_worker.GetZoneEnd( ev ); const auto zsz = std::max( ( end - ev.Start() ) * pxns, pxns * 0.5 ); if( zsz < MinVisSize ) { + const auto color = GetThreadColor( tid, depth ); int num = 0; const auto px0 = ( ev.Start() - m_vd.zvStart ) * pxns; auto px1 = ( end - m_vd.zvStart ) * pxns; @@ -2906,6 +2906,7 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, } else { + const auto color = GetZoneColor( ev, tid, depth ); const char* zoneName = m_worker.GetZoneName( ev ); int dmul = ev.text.active ? 2 : 1;