From 1a6f04f6ceba0d5b0649356c2bf48bfde3cfe4d9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 Nov 2019 23:05:11 +0100 Subject: [PATCH] Add zone color boxes to zone trace. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 67c2e8aa..d8dff767 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6015,6 +6015,8 @@ void View::DrawZoneInfoWindow() ImGui::TextDisabled( "%i.", fidx++ ); ImGui::SameLine(); const auto& srcloc = m_worker.GetSourceLocation( v->SrcLoc() ); + SmallColorBox( GetSrcLocColor( srcloc, 0 ) ); + ImGui::SameLine(); const auto txt = m_worker.GetZoneName( *v, srcloc ); ImGui::PushID( idx++ ); auto sel = ImGui::Selectable( txt, false );