mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Use C99 fminf and fmaxf
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user