mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-06 21:39:22 +00:00
Pass yMin, yMax through TimelineContext.
This commit is contained in:
@@ -110,6 +110,8 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool
|
||||
ctx.w = ImGui::GetContentRegionAvail().x - 1;
|
||||
ctx.ty = ImGui::GetTextLineHeight();
|
||||
ctx.scale = GetScale();
|
||||
ctx.yMin = yMin;
|
||||
ctx.yMax = yMax;
|
||||
ctx.pxns = pxns;
|
||||
ctx.nspx = 1.0 / pxns;
|
||||
ctx.wpos = wpos;
|
||||
@@ -127,7 +129,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, yMin, yMax );
|
||||
item->Draw( m_firstFrame, ctx, yOffset, hover );
|
||||
if( m_firstFrame ) currentFrameItemHeight = item->GetNextFrameHeight();
|
||||
yOffset += currentFrameItemHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user