mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-29 13:35:58 +00:00
Draw source code preview in source file link tooltip.
This commit is contained in:
@@ -309,7 +309,14 @@ public:
|
||||
ImGui::Text( ":%i", line );
|
||||
}
|
||||
|
||||
if( !idx.Active() )
|
||||
if( idx.Active() )
|
||||
{
|
||||
ImGui::Dummy( ImVec2( 0, ImGui::GetTextLineHeight() * 0.25f ) );
|
||||
ImGui::Separator();
|
||||
ImGui::Dummy( ImVec2( 0, ImGui::GetTextLineHeight() * 0.25f ) );
|
||||
m_view->DrawSourceTooltip( fn.c_str(), line, 3, 3, false );
|
||||
}
|
||||
else
|
||||
{
|
||||
TextColoredUnformatted( ImVec4( 1.f, 0.f, 0.f, 1.f ), "Invalid source file reference" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user