Skip to content

Commit

Permalink
Fix install failing on Windows XP
Browse files Browse the repository at this point in the history
The API `SetProcessDPIAware` does not exist on Windows XP.
  • Loading branch information
nexcvon authored Apr 20, 2017
1 parent 166b828 commit ad7609c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyautogui/_pyautogui_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@


# Fixes the scaling issues where PyAutoGUI was reporting the wrong resolution:
ctypes.windll.user32.SetProcessDPIAware()
try:
ctypes.windll.user32.SetProcessDPIAware()
except AttributeError:
pass


"""
Expand Down

0 comments on commit ad7609c

Please sign in to comment.