mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 16:25:47 -04:00
fix alpha channel stuff. finally
This commit is contained in:
parent
235de5a456
commit
a4639c280e
1 changed files with 1 additions and 2 deletions
|
@ -38,7 +38,6 @@ class ImagesExample:
|
||||||
gtk.gdk.INTERP_NEAREST
|
gtk.gdk.INTERP_NEAREST
|
||||||
))
|
))
|
||||||
baseimage.show()
|
baseimage.show()
|
||||||
baseimage.get_pixbuf().add_alpha(True,chr(0),chr(255),chr(255))
|
|
||||||
|
|
||||||
basepatch = gtk.Image()
|
basepatch = gtk.Image()
|
||||||
basepatch.set_from_file("../../patches/ps20a0.gif")
|
basepatch.set_from_file("../../patches/ps20a0.gif")
|
||||||
|
@ -49,7 +48,7 @@ class ImagesExample:
|
||||||
gtk.gdk.INTERP_NEAREST
|
gtk.gdk.INTERP_NEAREST
|
||||||
))
|
))
|
||||||
pb = basepatch.get_pixbuf()
|
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)]:
|
for x,y in [(0,0), (24,24), (104,16), (24,104), (-16,0), (0,-16)]:
|
||||||
x *= scale
|
x *= scale
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue