From 3201eedc34a8e707367e09c397bdbd7ca6c3be8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 26 Dec 2018 14:59:51 +0100 Subject: [PATCH] Cleanup We have a usable fminf now. --- src/monitor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index 0be3d205..c161ea11 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -450,10 +450,8 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) value = i / 255.f; // Apply gamma curve value = powf(value, 1.f / gamma) * 65535.f + 0.5f; - // Clamp to value range - if (value > 65535.f) - value = 65535.f; + value = _glfw_fminf(value, 65535.f); values[i] = (unsigned short) value; }