Use C99 fminf and fmaxf

This commit is contained in:
Camilla Löwy
2024-02-07 12:56:53 +01:00
parent 5a0ab56ed7
commit bb951b4b71
5 changed files with 3 additions and 29 deletions
+1 -1
View File
@@ -487,7 +487,7 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma)
// Apply gamma curve
value = powf(value, 1.f / gamma) * 65535.f + 0.5f;
// Clamp to value range
value = _glfw_fminf(value, 65535.f);
value = fminf(value, 65535.f);
values[i] = (unsigned short) value;
}