From b527118c0a6d27a648d836014b0a1f95c1c02362 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 2 Aug 2020 18:04:00 +1000 Subject: [PATCH] GPU/HW: Fix macOS compile --- src/core/gpu_hw.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index e7edf6f2e..564f09343 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -8,6 +8,7 @@ #include "settings.h" #include "system.h" #include +#include #include Log_SetChannel(GPU_HW); @@ -214,8 +215,8 @@ void GPU_HW::DrawLine(float x0, float y0, u32 col0, float x1, float y1, u32 col1 } else { - const float abs_dx = std::abs(dx); - const float abs_dy = std::abs(dy); + const float abs_dx = std::fabs(dx); + const float abs_dy = std::fabs(dy); float fill_dx, fill_dy; float dxdk, dydk; float pad_x0 = 0.0f;