1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Display custom zone name in zone tooltip.

This commit is contained in:
Bartosz Taudul 2018-06-29 16:15:59 +02:00
parent 09c38f17e6
commit ab18869ce6

View File

@ -5781,6 +5781,10 @@ void View::ZoneTooltip( const ZoneEvent& ev )
const auto end = m_worker.GetZoneEnd( ev );
ImGui::BeginTooltip();
if( ev.name.active )
{
ImGui::Text( "%s", m_worker.GetString( ev.name ) );
}
if( srcloc.name.active )
{
ImGui::Text( "%s", m_worker.GetString( srcloc.name ) );