mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Qt: Use std::abs instead of abs
...since <cmath> is included, not <math.h>. May or may not fix https://bugs.dolphin-emu.org/issues/10906
This commit is contained in:
@@ -171,7 +171,7 @@ void MappingIndicator::DrawStick()
|
||||
// Emulated cursor position
|
||||
float virt_curx, virt_cury;
|
||||
|
||||
if (abs(curx) < deadzone && abs(cury) < deadzone)
|
||||
if (std::abs(curx) < deadzone && std::abs(cury) < deadzone)
|
||||
{
|
||||
virt_curx = virt_cury = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user