From a4639c280e3da6818ee6a6b42115746dc28e3bd7 Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Sat, 23 Feb 2008 18:56:55 +0000 Subject: [PATCH] fix alpha channel stuff. finally --- tools/cleanroom/images.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/cleanroom/images.py b/tools/cleanroom/images.py index bbf2f5af..ef141e18 100644 --- a/tools/cleanroom/images.py +++ b/tools/cleanroom/images.py @@ -38,7 +38,6 @@ class ImagesExample: gtk.gdk.INTERP_NEAREST )) baseimage.show() - baseimage.get_pixbuf().add_alpha(True,chr(0),chr(255),chr(255)) basepatch = gtk.Image() basepatch.set_from_file("../../patches/ps20a0.gif") @@ -49,7 +48,7 @@ class ImagesExample: gtk.gdk.INTERP_NEAREST )) pb = basepatch.get_pixbuf() - pb.add_alpha(True,chr(0),chr(255),chr(255)) + pb = pb.add_alpha(True,chr(0),chr(255),chr(255)) for x,y in [(0,0), (24,24), (104,16), (24,104), (-16,0), (0,-16)]: x *= scale