mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
some debugging prints (need to fix the offsets, etc. for this copy bit)
This commit is contained in:
parent
361270d89a
commit
1fdc9d670f
1 changed files with 4 additions and 3 deletions
|
@ -73,9 +73,10 @@ class HellowWorldGTK:
|
|||
|
||||
# copy each patch into the texture pixbuf
|
||||
for patch in texture.patches:
|
||||
print "about to copy patch %s\n"%patch.name
|
||||
width = min(patch.pixbuf.get_width(), int(texture.width))
|
||||
height = min(patch.pixbuf.get_height(), int(texture.height))
|
||||
print "about to copy patch %s (%d,%d)\n"% ( patch.name, patch.pixbuf.get_width(), patch.pixbuf.get_height())
|
||||
width = max(patch.pixbuf.get_width(), int(texture.width) - patch.xoff)
|
||||
height = max(patch.pixbuf.get_height(), int(texture.height) - patch.yoff)
|
||||
print "debug: %d,%d,%d,%d\n" % (width,height,patch.xoff,patch.yoff)
|
||||
patch.pixbuf.copy_area(0,0,
|
||||
width, height,
|
||||
texbuf, patch.xoff, patch.yoff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue