mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Fix scroll bar display of child-only samples.
This commit is contained in:
parent
c7da9b1092
commit
141a4bc0fe
@ -2133,20 +2133,16 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStat& iptotal, const unorder
|
||||
++it;
|
||||
}
|
||||
const auto ly = round( rect.Min.y + float( firstLine ) / m_asm.size() * rect.GetHeight() );
|
||||
uint32_t color;
|
||||
if( m_childCalls )
|
||||
{
|
||||
color = GetHotnessColor( ipSum.local + ipSum.ext, ipmax.local + ipmax.ext );
|
||||
const auto color = GetHotnessColor( ipSum.local + ipSum.ext, ipmax.local + ipmax.ext );
|
||||
draw->AddRectFilled( ImVec2( x40, ly ), ImVec2( x60, ly+3 ), color );
|
||||
}
|
||||
else if( ipmax.local != 0 )
|
||||
{
|
||||
color = GetHotnessColor( ipSum.local, ipmax.local );
|
||||
const auto color = GetHotnessColor( ipSum.local, ipmax.local );
|
||||
draw->AddRectFilled( ImVec2( x40, ly ), ImVec2( x60, ly+3 ), color );
|
||||
}
|
||||
else
|
||||
{
|
||||
color = 0xFFFFFFFF;
|
||||
}
|
||||
draw->AddRectFilled( ImVec2( x40, ly ), ImVec2( x60, ly+3 ), color );
|
||||
}
|
||||
|
||||
if( selJumpStart != 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user