mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Draw limit region with striped rect.
This commit is contained in:
parent
d8728be689
commit
25ee7f945b
@ -3081,8 +3081,8 @@ void View::DrawZones()
|
|||||||
{
|
{
|
||||||
const auto px0 = ( m_findZone.range.min - m_vd.zvStart ) * pxns;
|
const auto px0 = ( m_findZone.range.min - m_vd.zvStart ) * pxns;
|
||||||
const auto px1 = std::max( px0 + std::max( 1.0, pxns * 0.5 ), ( m_findZone.range.max - m_vd.zvStart ) * pxns );
|
const auto px1 = std::max( px0 + std::max( 1.0, pxns * 0.5 ), ( m_findZone.range.max - m_vd.zvStart ) * pxns );
|
||||||
draw->AddRectFilled( ImVec2( wpos.x + px0, linepos.y ), ImVec2( wpos.x + px1, linepos.y + lineh ), 0x1188DDDD );
|
DrawStripedRect( draw, wpos.x + px0, linepos.y, wpos.x + px1, linepos.y + lineh, 10 * ImGui::GetTextLineHeight() / 15.f, 0x2288DDDD );
|
||||||
draw->AddRect( ImVec2( wpos.x + px0, linepos.y ), ImVec2( wpos.x + px1, linepos.y + lineh ), 0x2288DDDD );
|
draw->AddRect( ImVec2( wpos.x + px0, linepos.y ), ImVec2( wpos.x + px1, linepos.y + lineh ), 0x3388DDDD );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_highlight.active && m_highlight.start != m_highlight.end )
|
if( m_highlight.active && m_highlight.start != m_highlight.end )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user