Skip to content

Commit 624fed2

Browse files
committed
Round scaling instead of flooring
1 parent f50a11d commit 624fed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyinstaller/entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if os.name == 'nt' and os.environ.get('GDK_SCALE') is None:
33
import ctypes
44
scale_factor = ctypes.windll.shcore.GetScaleFactorForDevice(0)
5-
os.environ["GDK_SCALE"] = f"{scale_factor//100}"
5+
os.environ["GDK_SCALE"] = f"{round(scale_factor, -2)//100}"
66

77
from yafi import main
88
main()

0 commit comments

Comments
 (0)