mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 16:25:47 -04:00
label the args
This commit is contained in:
parent
d53e6b5a14
commit
8290bace20
1 changed files with 9 additions and 4 deletions
|
@ -53,12 +53,17 @@ class ImagesExample:
|
||||||
image = gtk.Image()
|
image = gtk.Image()
|
||||||
image.set_from_pixbuf(baseimage.get_pixbuf().copy())
|
image.set_from_pixbuf(baseimage.get_pixbuf().copy())
|
||||||
image.show()
|
image.show()
|
||||||
|
dest_x = x * scale
|
||||||
|
dest_y = y * scale
|
||||||
|
dest_width = pb.get_width()
|
||||||
|
dest_height = pb.get_height()
|
||||||
|
offset_x = x * scale
|
||||||
|
offset_y = y * scale
|
||||||
|
|
||||||
pb.composite(
|
pb.composite(
|
||||||
image.get_pixbuf(),
|
image.get_pixbuf(),
|
||||||
x * scale, y * scale,
|
dest_x, dest_y, dest_width, dest_height,
|
||||||
pb.get_width(), pb.get_height(),
|
offset_x, offset_y, 1, 1, # scale
|
||||||
x * scale, y * scale, # offsets
|
|
||||||
1, 1, # scale
|
|
||||||
gtk.gdk.INTERP_NEAREST, 255
|
gtk.gdk.INTERP_NEAREST, 255
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue