Skip to content

Commit

Permalink
Set DPI awareness flag when running under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Nov 17, 2019
1 parent e8f9ae8 commit 10c12e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ def _process_args(self, largs, rargs, values):
if db_needs_update() is True:
update_db()

try:
from ctypes import windll
except ImportError:
pass
else:
windll.shcore.SetProcessDpiAwareness(1)

# Lets get to the good stuff, shall we?
import eos.db
import eos.events # todo: move this to eos initialization?
Expand Down

0 comments on commit 10c12e3

Please sign in to comment.