mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00: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:
parent
fca9c28f38
commit
fd063bdc31
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue