From 27839f92acfd76e56dd6bd241db6274bb4e87f94 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Tue, 22 Feb 2011 00:54:20 +0000 Subject: [PATCH] Fix #1018 properly, make sure the colour values are brought into 0-255 range and rounded. Originally committed to SVN as r5354. --- aegisub/automation/include/utils-auto4.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/automation/include/utils-auto4.lua b/aegisub/automation/include/utils-auto4.lua index 368163162..30ac1004f 100644 --- a/aegisub/automation/include/utils-auto4.lua +++ b/aegisub/automation/include/utils-auto4.lua @@ -245,7 +245,7 @@ function HSL_to_RGB(H, S, L) end - return r, g, b + return math.floor(r*255+0.5), math.floor(g*255+0.5), math.floor(b*255+0.5) end -- Removes spaces at the start and end of string