From 59db6ee232550924da806fc46422239d78c657d6 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 29 Mar 2009 19:00:23 +0100 Subject: [PATCH] Fixed PIL opacity rendering, now fades to the correct value --- oblogout/oblogout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oblogout/oblogout.py b/oblogout/oblogout.py index a17953f..a831766 100644 --- a/oblogout/oblogout.py +++ b/oblogout/oblogout.py @@ -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()