Fixed PIL opacity rendering, now fades to the correct value

This commit is contained in:
2009-03-29 19:00:23 +01:00
parent 58a7b344df
commit 59db6ee232

View File

@@ -140,7 +140,7 @@ class OpenboxLogout():
wh = (pb.get_width(),pb.get_height())
pilimg = Image.fromstring("RGB", wh, pb.get_pixels())
pilimg = pilimg.point(lambda p: (p * self.opacity) / 100)
pilimg = pilimg.point(lambda p: (p * self.opacity) / 255 )
# "Convert" the PIL to Pixbuf via PixbufLoader
buf = StringIO.StringIO()