Fixed Hi-DPI for high resolution displays

This commit is contained in:
Willy 2023-09-08 17:04:22 -04:00
parent 934832ab0c
commit 501c5f8baa
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ if sys.platform != 'win32':
logging.info("[ERROR] This script only works on Windows!")
os._exit(0)
# Fix Hi-DPI
ctypes.windll.shcore.SetProcessDpiAwareness(2)
# Logging
logging.basicConfig(filename="log.txt",
format='%(asctime)s | %(message)s',