mirror of
https://github.com/wolfpld/tracy
synced 2025-05-07 15:33:52 +00:00
Fix MinVisNs type in messages preprocessing.
This commit is contained in:
parent
b3e9ede557
commit
734753a941
@ -585,7 +585,7 @@ void TimelineItemThread::PreprocessMessages( const TimelineContext& ctx, const V
|
|||||||
const auto vEnd = ctx.vEnd;
|
const auto vEnd = ctx.vEnd;
|
||||||
const auto nspx = ctx.nspx;
|
const auto nspx = ctx.nspx;
|
||||||
|
|
||||||
const auto MinVisNs = MinVisSize * nspx;
|
const auto MinVisNs = int64_t( round( GetScale() * MinVisSize * nspx ) );
|
||||||
|
|
||||||
auto it = std::lower_bound( vec.begin(), vec.end(), vStart, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } );
|
auto it = std::lower_bound( vec.begin(), vec.end(), vStart, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } );
|
||||||
if( it == vec.end() ) return;
|
if( it == vec.end() ) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user