mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 16:25:47 -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)
|
path = int(path)
|
||||||
new_text = int(new_text)
|
new_text = int(new_text)
|
||||||
if self.cellrendererwidth == cellrenderertext:
|
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
|
current_texture.patches[path].xoff = new_text
|
||||||
else:
|
else:
|
||||||
print "set patch %s height to %d" % (current_texture.patches[path].name, new_text)
|
|
||||||
current_texture.patches[path].yoff = 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):
|
def __init__(self):
|
||||||
self.gladefile = "cleanroom.glade"
|
self.gladefile = "cleanroom.glade"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue