Track currently hovered zone.

This commit is contained in:
Bartosz Taudul 2019-06-16 17:05:56 +02:00
parent 6e8b5381a5
commit 6a4f7ce1ca
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;