mirror of https://github.com/odrling/Aegisub
Commit jfs' patch to fix rounding errors as he doesn't have trunk going at the moment. Closes #1018.
Originally committed to SVN as r3622.
This commit is contained in:
parent
6364e127f6
commit
4cc6610161
|
@ -172,9 +172,6 @@ function HSV_to_RGB(H,S,V)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
r = math.floor(r)
|
|
||||||
g = math.floor(g)
|
|
||||||
b = math.floor(b)
|
|
||||||
return r,g,b
|
return r,g,b
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -239,10 +236,6 @@ function HSL_to_RGB(H, S, L)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
r = math.floor(r * 255)
|
|
||||||
g = math.floor(g * 255)
|
|
||||||
b = math.floor(b * 255)
|
|
||||||
|
|
||||||
return r, g, b
|
return r, g, b
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue