From b85ae851c9d8c91bc3a4c698403a24c8c09f4628 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 15 Aug 2014 10:29:23 -0400 Subject: color: Rename saturate to clamp. --- libdimension/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/png.c') diff --git a/libdimension/png.c b/libdimension/png.c index faca080..6b73738 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -198,7 +198,7 @@ dmnsn_png_write_canvas_thread(void *ptr) x, height - y - 1); tcolor = dmnsn_tcolor_remove_filter(tcolor); tcolor.c = dmnsn_color_to_sRGB(tcolor.c); - tcolor = dmnsn_tcolor_saturate(tcolor); + tcolor = dmnsn_tcolor_clamp(tcolor); row[4*x] = lround(tcolor.c.R*UINT16_MAX); row[4*x + 1] = lround(tcolor.c.G*UINT16_MAX); -- cgit v1.2.3