mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-10-06 18:11:17 +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)
|
bool IsSamePPS(double sampleRate, double lhs, double rhs)
|
||||||
{
|
{
|
||||||
return std::abs(1.0 / lhs - 1.0 / rhs) *
|
return lhs == rhs;
|
||||||
GraphicsDataCacheBase::CacheElementWidth <
|
|
||||||
(1.0 / sampleRate);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsSameKey(
|
bool IsSameKey(
|
||||||
|
Reference in New Issue
Block a user