From 0b1a6047f682ce77fb648bbde9d4d07ee90cbc63 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 7 Sep 2019 15:33:11 +0200 Subject: [PATCH] Add different highlight for zones selected on histogram. --- server/TracyView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4d473a56..642894b0 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11704,6 +11704,14 @@ uint32_t View::GetZoneColor( const ZoneEvent& ev ) { if( m_findZone.show && !m_findZone.match.empty() && m_findZone.match[m_findZone.selMatch] == ev.SrcLoc() ) { + if( m_findZone.highlight.active ) + { + const auto zt = m_worker.GetZoneEnd( ev ) - ev.Start(); + if( zt >= m_findZone.highlight.start && zt <= m_findZone.highlight.end ) + { + return 0xFFFFCC66; + } + } return 0xFF229999; } else