mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Set unique ID for frame list invisible buttons.
This commit is contained in:
parent
8b9da2efba
commit
86270dac6d
@ -106,7 +106,9 @@ void View::DrawTimelineFrames( const FrameData& frames )
|
|||||||
const auto ty025 = ty * 0.25f;
|
const auto ty025 = ty * 0.25f;
|
||||||
const auto ty05 = round( ty * 0.5f );
|
const auto ty05 = round( ty * 0.5f );
|
||||||
|
|
||||||
|
ImGui::PushID( &frames );
|
||||||
ImGui::InvisibleButton( "##zoneFrames", ImVec2( w, ty ) );
|
ImGui::InvisibleButton( "##zoneFrames", ImVec2( w, ty ) );
|
||||||
|
ImGui::PopID();
|
||||||
bool hover = ImGui::IsItemHovered();
|
bool hover = ImGui::IsItemHovered();
|
||||||
|
|
||||||
auto timespan = m_vd.zvEnd - m_vd.zvStart;
|
auto timespan = m_vd.zvEnd - m_vd.zvStart;
|
||||||
|
Loading…
Reference in New Issue
Block a user