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:
Dmitry Makarenko
2025-02-17 19:51:14 +03:00
committed by Avery King
parent c626c5f5fe
commit 59489b587d

View File

@@ -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(