Add zone color boxes to zone trace.

This commit is contained in:
Bartosz Taudul 2019-11-02 23:05:11 +01:00
parent 3a304ad054
commit 1a6f04f6ce

View File

@ -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 );