mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Draw external frames dimmed in sample entry stacks.
This commit is contained in:
@@ -1038,7 +1038,8 @@ void View::DrawSampleParents()
|
||||
{
|
||||
const auto& frame = frameData->data[f];
|
||||
|
||||
if( m_worker.IsFrameExternal( frame.file, frameData->imageName ) )
|
||||
const auto isExternal = m_worker.IsFrameExternal( frame.file, frameData->imageName );
|
||||
if( isExternal )
|
||||
{
|
||||
if( !m_showExternalFrames )
|
||||
{
|
||||
@@ -1091,6 +1092,10 @@ void View::DrawSampleParents()
|
||||
{
|
||||
TextColoredUnformatted( 0xFF8888FF, txt );
|
||||
}
|
||||
else if( isExternal )
|
||||
{
|
||||
TextDisabledUnformatted( txt );
|
||||
}
|
||||
else if( m_vd.shortenName == ShortenName::Never )
|
||||
{
|
||||
ImGui::TextUnformatted( txt );
|
||||
|
||||
Reference in New Issue
Block a user