- 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():
|
if not bmp.Ok():
|
||||||
bmp = wx.EmptyBitmap((1,1))
|
bmp = wx.EmptyBitmap((1,1))
|
||||||
else:
|
else:
|
||||||
(H,W) = (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(W,H)
|
||||||
|
@ -26,9 +26,9 @@ class Scyther(object):
|
|||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
""" Windows """
|
""" Windows """
|
||||||
# TODO hardcoded for now, bad
|
# TODO hardcoded for now, bad
|
||||||
scyther.program = "c:\\Scyther.exe"
|
self.program = "c:\\Scyther.exe"
|
||||||
if not os.path.isfile(scyther.program):
|
if not os.path.isfile(self.program):
|
||||||
print "I can't find the Scyther executable %s" % (scyther.program)
|
print "I can't find the Scyther executable at %s" % (self.program)
|
||||||
else:
|
else:
|
||||||
""" Non-windows """
|
""" Non-windows """
|
||||||
self.program = "scyther"
|
self.program = "scyther"
|
||||||
|
Loading…
Reference in New Issue
Block a user