Fix pixel and nanosecond domain mixing.

This commit is contained in:
Bartosz Taudul 2023-03-22 22:41:19 +01:00
parent 80c15c0f9b
commit 83ae9868e2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -565,7 +565,8 @@ void TimelineItemThread::PreprocessSamples( const TimelineContext& ctx, const Ve
while( it < itend )
{
bool visible = true;
const auto px0 = ( it->time.Val() - vStart ) * pxns;
const auto t0 = it->time.Val();
const auto px0 = ( t0 - vStart ) * pxns;
double px1;
auto next = it+1;
uint32_t num = 0;
@ -577,7 +578,7 @@ void TimelineItemThread::PreprocessSamples( const TimelineContext& ctx, const Ve
{
const auto MinVisNs = MinVis * nspx;
visible = false;
auto nextTime = px0 + MinVisNs;
auto nextTime = t0 + MinVisNs;
for(;;)
{
const auto prev = next;