mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 22:25:46 -04:00
scale the patch up three times.
This commit is contained in:
parent
14e44399a9
commit
93195a0962
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,14 @@ class HellowWorldGTK:
|
|||
|
||||
self.image1 = self.wTree.get_widget("orig_texture")
|
||||
self.image1.set_from_file("sw2_1.gif")
|
||||
pixbuf = self.image1.get_pixbuf()
|
||||
if pixbuf:
|
||||
scale = 3
|
||||
self.image1.set_from_pixbuf(pixbuf.scale_simple(
|
||||
pixbuf.get_width() * scale,
|
||||
pixbuf.get_height() * scale,
|
||||
gtk.gdk.INTERP_NEAREST
|
||||
))
|
||||
|
||||
self.wTree.get_widget("window1").connect("destroy", gtk.main_quit)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue