fix: arreglat un warning en utils.cpp

This commit is contained in:
2025-06-27 21:20:18 +02:00
parent ce48cda0bc
commit 13860af98e

View File

@@ -426,7 +426,7 @@ constexpr HSV rgbToHsv(Color color)
constexpr Color hsvToRgb(HSV hsv)
{
float c = hsv.v * hsv.s;
float x = c * (1 - fabsf(fmodf(hsv.h / 60.0f, 2) - 1));
float x = c * (1 - std::abs(std::fmod(hsv.h / 60.0f, 2) - 1));
float m = hsv.v - c;
float r = 0, g = 0, b = 0;