From a2b3970ddec2a88c9741efd825032cf649cc6bfd Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 15 Aug 2014 10:33:48 -0400 Subject: geometry: New dmnsn_clamp() function. --- libdimension/dimension/tcolor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/dimension/tcolor.h') diff --git a/libdimension/dimension/tcolor.h b/libdimension/dimension/tcolor.h index f85fcd6..8c48800 100644 --- a/libdimension/dimension/tcolor.h +++ b/libdimension/dimension/tcolor.h @@ -94,8 +94,8 @@ DMNSN_INLINE dmnsn_tcolor dmnsn_tcolor_clamp(dmnsn_tcolor tcolor) { tcolor.c = dmnsn_color_clamp(tcolor.c); - tcolor.T = dmnsn_min(dmnsn_max(tcolor.T, 0.0), 1.0); - tcolor.F = dmnsn_min(dmnsn_max(tcolor.F, 0.0), 1.0); + tcolor.T = dmnsn_clamp(tcolor.T, 0.0, 1.0); + tcolor.F = dmnsn_clamp(tcolor.F, 0.0, 1.0); return tcolor; } -- cgit v1.2.3