float --> int fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,6 @@ def makeGray((r,g,b), factor, maskColor):
|
||||
changed.
|
||||
"""
|
||||
if (r,g,b) != maskColor:
|
||||
return map(lambda x: ((230 - x) * factor) + x, (r,g,b))
|
||||
return map(lambda x: int((230 - x) * factor) + x, (r,g,b))
|
||||
else:
|
||||
return (r,g,b)
|
||||
|
Reference in New Issue
Block a user