More Py3.10 integer fixes

This commit is contained in:
Robin Dunn
2021-12-28 22:25:21 -08:00
parent 6fa094d01e
commit 40e612923d

View File

@@ -132,8 +132,8 @@ class SVGimage(SVGimageBase):
"""
size = wx.Size(*size)
if window:
size.width *= window.GetContentScaleFactor()
size.height *= window.GetContentScaleFactor()
size.width = int(size.width * window.GetContentScaleFactor())
size.height = int(size.height * window.GetContentScaleFactor())
# We can only have one overall scale factor for both dimensions with
# this rasterization method, so chose either the minimum of width or