mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 22:35:39 +00:00
GPU/HW: Fix macOS compile
This commit is contained in:
parent
293f76a018
commit
b527118c0a
|
@ -8,6 +8,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <cmath>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
Log_SetChannel(GPU_HW);
|
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
|
else
|
||||||
{
|
{
|
||||||
const float abs_dx = std::abs(dx);
|
const float abs_dx = std::fabs(dx);
|
||||||
const float abs_dy = std::abs(dy);
|
const float abs_dy = std::fabs(dy);
|
||||||
float fill_dx, fill_dy;
|
float fill_dx, fill_dy;
|
||||||
float dxdk, dydk;
|
float dxdk, dydk;
|
||||||
float pad_x0 = 0.0f;
|
float pad_x0 = 0.0f;
|
||||||
|
|
Loading…
Reference in a new issue