mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-21 02:28:26 +00:00
Move hover flag to TimelineContext.
This commit is contained in:
@@ -115,6 +115,7 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool
|
||||
ctx.pxns = pxns;
|
||||
ctx.nspx = 1.0 / pxns;
|
||||
ctx.wpos = wpos;
|
||||
ctx.hover = hover;
|
||||
|
||||
for( auto& item : m_items )
|
||||
{
|
||||
@@ -129,7 +130,7 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool
|
||||
for( auto& item : m_items )
|
||||
{
|
||||
auto currentFrameItemHeight = item->GetNextFrameHeight();
|
||||
item->Draw( m_firstFrame, ctx, yOffset, hover );
|
||||
item->Draw( m_firstFrame, ctx, yOffset );
|
||||
if( m_firstFrame ) currentFrameItemHeight = item->GetNextFrameHeight();
|
||||
yOffset += currentFrameItemHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user