forked from mia/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
1 changed files with 0 additions and 7 deletions
|
@ -172,9 +172,6 @@ function HSV_to_RGB(H,S,V)
|
|||
end
|
||||
end
|
||||
|
||||
r = math.floor(r)
|
||||
g = math.floor(g)
|
||||
b = math.floor(b)
|
||||
return r,g,b
|
||||
end
|
||||
|
||||
|
@ -239,10 +236,6 @@ function HSL_to_RGB(H, S, L)
|
|||
|
||||
end
|
||||
|
||||
r = math.floor(r * 255)
|
||||
g = math.floor(g * 255)
|
||||
b = math.floor(b * 255)
|
||||
|
||||
return r, g, b
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue