- Bugfix. There is still a bug in the non-PIL output though at resize (check under windows)
This commit is contained in:
parent
51da34c0df
commit
6ee0a36360
@ -83,7 +83,7 @@ class AttackDisplay(wx.ScrolledWindow):
|
||||
if not bmp.Ok():
|
||||
bmp = wx.EmptyBitmap((1,1))
|
||||
else:
|
||||
(H,W) = (bmp.GetWidth(), bmp.GetHeight())
|
||||
(W,H) = (bmp.GetWidth(), bmp.GetHeight())
|
||||
if self.win.fit:
|
||||
(H,W) = makefit(H,W)
|
||||
bmp = self.original.Scale(W,H)
|
||||
|
@ -26,9 +26,9 @@ class Scyther(object):
|
||||
if sys.platform.startswith('win'):
|
||||
""" Windows """
|
||||
# TODO hardcoded for now, bad
|
||||
scyther.program = "c:\\Scyther.exe"
|
||||
if not os.path.isfile(scyther.program):
|
||||
print "I can't find the Scyther executable %s" % (scyther.program)
|
||||
self.program = "c:\\Scyther.exe"
|
||||
if not os.path.isfile(self.program):
|
||||
print "I can't find the Scyther executable at %s" % (self.program)
|
||||
else:
|
||||
""" Non-windows """
|
||||
self.program = "scyther"
|
||||
|
Loading…
Reference in New Issue
Block a user