mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Fixed a compiler warning on NetBSD.
This commit is contained in:
parent
382b557ccc
commit
e9dabf7084
|
@ -235,7 +235,7 @@ void SystemView::onCursorChanged(const CursorState& state)
|
|||
|
||||
if (mPrimaryType == PrimaryType::CAROUSEL) {
|
||||
// Find the shortest path to the target.
|
||||
float dist {fabs(endPos - startPos)};
|
||||
float dist {fabsf(endPos - startPos)};
|
||||
|
||||
if (fabs(target + posMax - startPos - scrollVelocity) < dist)
|
||||
endPos = target + posMax; // Loop around the end (0 -> max).
|
||||
|
|
Loading…
Reference in a new issue