From 40e612923dc2e1759582f9d2a3ae55bbdb02f566 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 28 Dec 2021 22:25:21 -0800 Subject: [PATCH] More Py3.10 integer fixes --- wx/svg/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/svg/__init__.py b/wx/svg/__init__.py index 3510063d..9f611110 100644 --- a/wx/svg/__init__.py +++ b/wx/svg/__init__.py @@ -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