- Bugfixes for non-pil stuff.

This commit is contained in:
ccremers 2006-08-07 11:33:25 +00:00
parent 01b62e5786
commit 6e759327cf
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class AttackDisplay(wx.ScrolledWindow):
(W,H) = (bmp.GetWidth(), bmp.GetHeight())
if self.win.fit:
(H,W) = makefit(H,W)
bmp = self.original.Scale(W,H)
bmp = self.original.Scale(H,W)
self.Image.SetBitmap(wx.BitmapFromImage(bmp))
elif self.attack.filetype == "ps":
pil = self.original.copy()

View File

@ -131,7 +131,7 @@ class AttackThread(threading.Thread):
cmd = "dot -T%s" % (type)
# execute command
cin,cout = os.popen2(cmd)
cin,cout = os.popen2(cmd,'b')
cin.write(attack.scytherDot)
cin.close()