From 2bf2d31d813614b6b669d24902cbab81d4f449b1 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:12:06 -0300 Subject: [PATCH] windows: enable DPI awareness This fixes blurry fonts on Windows on displays with scaling factors higher than 100%. --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 00d536f9..6058a5b1 100644 --- a/main.py +++ b/main.py @@ -83,6 +83,10 @@ def debug_gql(self) -> int: return logging.INFO return logging.NOTSET + if sys.platform == "win32": + from ctypes import windll + windll.shcore.SetProcessDpiAwareness(1) + # handle input parameters # NOTE: parser output is shown via message box # we also need a dummy invisible window for the parser