mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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;
|
const auto tid = threadData->id;
|
||||||
if( ev.name.active )
|
if( ev.name.active )
|
||||||
{
|
{
|
||||||
|
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||||
TextFocused( "Zone name:", m_worker.GetString( ev.name ) );
|
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 ) );
|
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:" );
|
TextDisabledUnformatted( "Location:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
|
||||||
@ -4847,7 +4863,9 @@ void View::DrawGpuInfoWindow()
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
const auto tid = GetZoneThread( ev );
|
const auto tid = GetZoneThread( ev );
|
||||||
|
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||||
TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) );
|
TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) );
|
||||||
|
if( m_bigFont ) ImGui::PopFont();
|
||||||
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
TextFocused( "Function:", m_worker.GetString( srcloc.function ) );
|
||||||
TextDisabledUnformatted( "Location:" );
|
TextDisabledUnformatted( "Location:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user