mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Track currently hovered zone.
This commit is contained in:
parent
6e8b5381a5
commit
6a4f7ce1ca
@ -1854,6 +1854,7 @@ void View::DrawZones()
|
||||
m_msgHighlight.Decay( nullptr );
|
||||
m_zoneSrcLocHighlight.Decay( 0 );
|
||||
m_lockHoverHighlight.Decay( InvalidId );
|
||||
m_zoneHover = nullptr;
|
||||
|
||||
if( m_zvStart == m_zvEnd ) return;
|
||||
assert( m_zvStart < m_zvEnd );
|
||||
@ -2469,6 +2470,7 @@ int View::DrawZoneLevel( const Vector<ZoneEvent*>& vec, bool hover, double pxns,
|
||||
}
|
||||
|
||||
m_zoneSrcLocHighlight = ev.srcloc;
|
||||
m_zoneHover = &ev;
|
||||
}
|
||||
}
|
||||
char tmp[64];
|
||||
@ -2604,6 +2606,7 @@ int View::DrawZoneLevel( const Vector<ZoneEvent*>& vec, bool hover, double pxns,
|
||||
}
|
||||
|
||||
m_zoneSrcLocHighlight = ev.srcloc;
|
||||
m_zoneHover = &ev;
|
||||
}
|
||||
|
||||
++it;
|
||||
|
@ -263,6 +263,7 @@ private:
|
||||
int m_memoryAllocHoverWait = 0;
|
||||
const FrameData* m_frames;
|
||||
uint32_t m_lockInfoWindow = InvalidId;
|
||||
ZoneEvent* m_zoneHover = nullptr;
|
||||
|
||||
Region m_highlight;
|
||||
Region m_highlightZoom;
|
||||
|
Loading…
Reference in New Issue
Block a user