From 35562ed6e259c5ac3b2fb9a131d38417b48ef4a1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 1 Oct 2017 19:38:45 +0200 Subject: [PATCH] Make zone highlight color a derivative of zone color. --- server/TracyView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6a1115a3..d6ab0884 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1520,7 +1520,11 @@ uint32_t View::GetZoneHighlight( const Event& ev ) } else { - return 0xFF888888; + const auto color = GetZoneColor( ev ); + return 0xFF000000 | + ( std::min( 0xFF, ( ( ( color & 0x00FF0000 ) >> 16 ) + 25 ) ) << 16 ) | + ( std::min( 0xFF, ( ( ( color & 0x0000FF00 ) >> 8 ) + 25 ) ) << 8 ) | + ( std::min( 0xFF, ( ( ( color & 0x000000FF ) ) + 25 ) ) ); } }