Use draw list data to draw locks.

This commit is contained in:
Bartosz Taudul
2023-04-15 22:47:32 +02:00
parent 788d9b77fc
commit 5aaa4fcaf7
3 changed files with 308 additions and 702 deletions

View File

@@ -28,8 +28,6 @@ void View::DrawThread( const TimelineContext& ctx, const ThreadData& thread, con
const auto& wpos = ctx.wpos;
const auto ty = ctx.ty;
const auto ostep = ty + 1;
const auto pxns = ctx.pxns;
const auto hover = ctx.hover;
const auto yMin = ctx.yMin;
const auto yMax = ctx.yMax;
const auto sty = ctx.sty;
@@ -77,7 +75,7 @@ void View::DrawThread( const TimelineContext& ctx, const ThreadData& thread, con
if( m_vd.drawLocks )
{
const auto lockDepth = DrawLocks( thread.id, hover, pxns, wpos, offset, m_nextLockHighlight, yMin, yMax );
const auto lockDepth = DrawLocks( ctx, lockDraw, thread.id, offset, m_nextLockHighlight );
offset += sstep * lockDepth;
depth += lockDepth;
}