mirror of
https://github.com/wolfpld/tracy.git
synced 2024-09-20 05:42:18 +00:00
Use big font in zone info windows.
This commit is contained in:
parent
245c6f9f01
commit
1afcd24dc6
@ -4260,13 +4260,29 @@ void View::DrawZoneInfoWindow()
|
||||
const auto tid = threadData->id;
|
||||
if( ev.name.active )
|
||||
{
|
||||
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||
TextFocused( "Zone name:", m_worker.GetString( ev.name ) );
|
||||
if( m_bigFont ) ImGui::PopFont();
|
||||
if( srcloc.name.active )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s)", m_worker.GetString( srcloc.name ) );
|
||||
}
|
||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||
}
|
||||
if( srcloc.name.active )
|
||||
else if( srcloc.name.active )
|
||||
{
|
||||
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||
TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) );
|
||||
if( m_bigFont ) ImGui::PopFont();
|
||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||
if( m_bigFont ) ImGui::PopFont();
|
||||
}
|
||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||
TextDisabledUnformatted( "Location:" );
|
||||
ImGui::SameLine();
|
||||
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
||||
@ -4847,7 +4863,9 @@ void View::DrawGpuInfoWindow()
|
||||
ImGui::Separator();
|
||||
|
||||
const auto tid = GetZoneThread( ev );
|
||||
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||
TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) );
|
||||
if( m_bigFont ) ImGui::PopFont();
|
||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||
TextDisabledUnformatted( "Location:" );
|
||||
ImGui::SameLine();
|
||||
|
Loading…
Reference in New Issue
Block a user