From 6009bd534d42cc64cad4bc72df5f2b292028e87c Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 18 May 2020 19:50:39 +0200 Subject: [PATCH] Added std:: --- SDLU/structures/Color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDLU/structures/Color.cpp b/SDLU/structures/Color.cpp index 3a48793..38758b0 100644 --- a/SDLU/structures/Color.cpp +++ b/SDLU/structures/Color.cpp @@ -53,12 +53,12 @@ namespace sdlu // H : [0, 360) // S : [0, 1] // V : [0, 1] - h -= floor(h / 360) * 360; + h -= std::floor(h / 360) * 360; s = (s > 1) ? 1 : s; v = (v > 1) ? 1 : v; // Convert to RGBA - Uint16 H = floor(h / 60.f); + Uint16 H = std::floor(h / 60.f); float f = (h / 60.f) - H; Uint8 p = static_cast((v * (1 - s)) * 255);