Ensure ints are passed to SetDeviceOrigin()

This commit is contained in:
DarkPhoenix
2023-12-06 22:47:59 +06:00
parent 3593d16bd1
commit b7a5b33ff6

View File

@@ -1213,7 +1213,7 @@ class _TabsContainer(wx.Panel):
bmp = wx.Bitmap(img)
mdc.DrawBitmap(bmp, round(posx), (posy), True)
mdc.SetDeviceOrigin(posx, posy)
mdc.SetDeviceOrigin(round(posx), round(posy))
tab.DrawText(mdc)
mdc.SetDeviceOrigin(0, 0)
else:
@@ -1235,7 +1235,7 @@ class _TabsContainer(wx.Panel):
mdc.DrawBitmap(bmp, round(posx), round(posy), True)
mdc.SetDeviceOrigin(posx, posy)
mdc.SetDeviceOrigin(round(posx), round(posy))
selected.DrawText(mdc)
mdc.SetDeviceOrigin(0, 0)