mirror of
https://github.com/nikdoof/oblogout.git
synced 2025-12-24 07:49:24 +00:00
Fixed PIL opacity rendering, now fades to the correct value
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user