mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
More Py3.10 integer fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user