mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-27 16:56:19 +02:00
Fix incorrect drawing on high zoom levels
Use strict PPS comparison to match the requirement of std::merge and std::equal_range. (cherry picked from commit eb336d3a474340c05ea6804c79c29e6e89965ecd) Signed-off-by: Avery King <gperson@disroot.org>
This commit is contained in:
committed by
Avery King
parent
c626c5f5fe
commit
59489b587d
@@ -32,9 +32,7 @@ bool IsSameSample(double sampleRate, double t0, double t1) noexcept
|
||||
|
||||
bool IsSamePPS(double sampleRate, double lhs, double rhs)
|
||||
{
|
||||
return std::abs(1.0 / lhs - 1.0 / rhs) *
|
||||
GraphicsDataCacheBase::CacheElementWidth <
|
||||
(1.0 / sampleRate);
|
||||
return lhs == rhs;
|
||||
}
|
||||
|
||||
bool IsSameKey(
|
||||
|
Reference in New Issue
Block a user