Skip to content

Commit

Permalink
Ensure ints are passed to SetDeviceOrigin()
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Dec 6, 2023
1 parent 3593d16 commit b7a5b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/chrome_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ def OnPaint(self, event):
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:
Expand All @@ -1235,7 +1235,7 @@ def OnPaint(self, event):

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)

Expand Down

0 comments on commit b7a5b33

Please sign in to comment.