fixup: Use the float abs function

This commit is contained in:
Catherine Reprobate committed 2023-09-29 17:29:08 -07:00
1 parent b0c6e79329
commit 940ba8c4c0
1 file changed
+2 -2
+2 -2
View File
@@ -731,8 +731,8 @@ void inputMouseGetScaledDeltaAbsSens(f32 *dx, f32 *dy)
{
f32 mdx, mdy;
if (mouseLocked) {
mdx = abs(mouseSensX) * (f32)mouseDX / 100.0f;
mdy = abs(mouseSensY) * (f32)mouseDY / 100.0f;
mdx = fabsf(mouseSensX) * (f32)mouseDX / 100.0f;
mdy = fabsf(mouseSensY) * (f32)mouseDY / 100.0f;
} else {
mdx = 0.f;
mdy = 0.f;