From 91171a6674b9a2a4c53b04702895e59961122b28 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Dec 2018 20:18:29 +0100 Subject: [PATCH] Draw zig-zag pattern over collapsed locks. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f49196c5..9acdb36c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3080,6 +3080,10 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, const auto coutline = drawState == LockState::HasLock ? 0xFF3BA33B : ( drawState == LockState::HasBlockingLock ? 0xFF3BA3A3 : 0xFF3B3BD6 ); draw->AddRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ), coutline ); } + else if( condensed > 1 ) + { + DrawZigZag( draw, wpos + ImVec2( 0, offset + round( ty / 2 ) ), px0, pxend, ty / 4, DarkenColor( cfilled ) ); + } const auto rx0 = ( t0 - m_zvStart ) * pxns; if( dsz >= MinVisSize )