The war on constants, Attack of the functions

This commit is contained in:
HomeWorld
2010-10-28 20:32:44 +03:00
parent 68923ccea5
commit 6a5d0475d0

View File

@@ -1009,8 +1009,8 @@ class ShipItem(wx.Window):
mdc.DrawText(fformat %fittings if fittings >0 else fformat, textStart, ypos)
self.editPosX = rect.width - 20
self.editPosY = (rect.height - 16) / 2
self.editPosX = rect.width - self.newToggleBmp.GetWidth() -5
self.editPosY = (rect.height - self.newToggleBmp.GetHeight()) / 2
mdc.DrawBitmap(self.newToggleBmp, self.editPosX, self.editPosY, 0)
mdc.SetFont(wx.Font(7, wx.SWISS, wx.NORMAL, wx.NORMAL, False))