- Bugfixes for non-pil stuff.
This commit is contained in:
parent
01b62e5786
commit
6e759327cf
@ -83,7 +83,7 @@ class AttackDisplay(wx.ScrolledWindow):
|
|||||||
(W,H) = (bmp.GetWidth(), bmp.GetHeight())
|
(W,H) = (bmp.GetWidth(), bmp.GetHeight())
|
||||||
if self.win.fit:
|
if self.win.fit:
|
||||||
(H,W) = makefit(H,W)
|
(H,W) = makefit(H,W)
|
||||||
bmp = self.original.Scale(W,H)
|
bmp = self.original.Scale(H,W)
|
||||||
self.Image.SetBitmap(wx.BitmapFromImage(bmp))
|
self.Image.SetBitmap(wx.BitmapFromImage(bmp))
|
||||||
elif self.attack.filetype == "ps":
|
elif self.attack.filetype == "ps":
|
||||||
pil = self.original.copy()
|
pil = self.original.copy()
|
||||||
|
@ -131,7 +131,7 @@ class AttackThread(threading.Thread):
|
|||||||
cmd = "dot -T%s" % (type)
|
cmd = "dot -T%s" % (type)
|
||||||
|
|
||||||
# execute command
|
# execute command
|
||||||
cin,cout = os.popen2(cmd)
|
cin,cout = os.popen2(cmd,'b')
|
||||||
cin.write(attack.scytherDot)
|
cin.write(attack.scytherDot)
|
||||||
cin.close()
|
cin.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user