From 3b223c64d404b74e958ff6a656be6535c5ae9b3d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 1 Oct 2019 23:17:36 +0200 Subject: [PATCH] Darken to background color to hide overhang. This only handles the root window case. When the profiler is embedded in other application, the window background color is not matched. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4f0a957c..6200313f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2739,7 +2739,7 @@ void View::DrawContextSwitches( const ContextSwitch* ctx, bool hover, double pxn const auto color = migration ? 0xFFEE7711 : 0xFF2222AA; if( m_vd.darkenContextSwitches ) { - draw->AddRectFilled( wpos + ImVec2( px0, round( offset + ty * 0.5 ) ), wpos + ImVec2( px1, endOffset ), 0x44000000 ); + draw->AddRectFilled( wpos + ImVec2( px0, round( offset + ty * 0.5 ) ), wpos + ImVec2( px1, endOffset ), 0x66212326 ); } draw->AddLine( wpos + ImVec2( px0, round( offset + ty * 0.5 ) - 0.5 ), wpos + ImVec2( std::min( pxw, w+10.0 ), round( offset + ty * 0.5 ) - 0.5 ), color, 2 ); if( ev.wakeup != ev.Start() )