mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
redraw rhs on xoff/yoff change
This commit is contained in:
parent
d7b0ecb60d
commit
8f1827d392
1 changed files with 4 additions and 2 deletions
|
@ -184,11 +184,13 @@ class HellowWorldGTK:
|
|||
path = int(path)
|
||||
new_text = int(new_text)
|
||||
if self.cellrendererwidth == cellrenderertext:
|
||||
print "set patch %s width to %d" % (current_texture.patches[path].name, new_text)
|
||||
current_texture.patches[path].xoff = new_text
|
||||
else:
|
||||
print "set patch %s height to %d" % (current_texture.patches[path].name, new_text)
|
||||
current_texture.patches[path].yoff = new_text
|
||||
self.init_texture_pixbuf(current_texture)
|
||||
wip_image = self.wTree.get_widget("wip_texture")
|
||||
wip_image.set_from_pixbuf(current_texture.pixbuf)
|
||||
self.scale_up_texture(wip_image)
|
||||
|
||||
def __init__(self):
|
||||
self.gladefile = "cleanroom.glade"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue