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:
Robin Dunn
2003-09-24 20:24:51 +00:00
parent 04443bbfb0
commit 4c5304540d
4 changed files with 4 additions and 4 deletions

View File

@@ -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)