From 624fed2c71cd3f8cda47b5acc856cfd38cf7b070 Mon Sep 17 00:00:00 2001 From: Stephen Horvath Date: Tue, 9 Sep 2025 17:39:53 +1000 Subject: [PATCH] Round scaling instead of flooring --- pyinstaller/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinstaller/entrypoint.py b/pyinstaller/entrypoint.py index b78322e..5944226 100644 --- a/pyinstaller/entrypoint.py +++ b/pyinstaller/entrypoint.py @@ -2,7 +2,7 @@ import os if os.name == 'nt' and os.environ.get('GDK_SCALE') is None: import ctypes scale_factor = ctypes.windll.shcore.GetScaleFactorForDevice(0) - os.environ["GDK_SCALE"] = f"{scale_factor//100}" + os.environ["GDK_SCALE"] = f"{round(scale_factor, -2)//100}" from yafi import main main()