diff --git a/AUTHORS.txt b/AUTHORS.txt index fddd59c..969f28e 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -22,6 +22,7 @@ Harrison https://github.com/Sentdex Hugo Salvador https://github.com/hugoesb jakibaki https://github.com/ Jeremy R. Gray https://github.com/jeremygray +Jon Winsley https://github.com/glitchassassin Jose Riha https://github.com/jose1711 Korons https://github.com/Korons lb1a https://github.com/lb1a diff --git a/CHANGES.txt b/CHANGES.txt index 842f031..e6ac425 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,5 @@ +v0.9.35, 2017/03/19 -- Fixed Windows DPI scaling issue. +v0.9.34, 2017/03/18 -- Fixed several bugs after the Sentry OSS sprint, including Windows permission errors. v0.9.33, 2016/01/08 -- Fixed bug with missing keyword arg in hotkey(). Thanks jmcduffie! v0.9.32, 2015/10/28 -- Updated setup.py to pull info from source v0.9.31, 2015/09/06 -- Incorporated many fixes and changes from Denilson Figueiredo de Sá. Thanks! diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py index 56de39d..9ab1d73 100644 --- a/pyautogui/__init__.py +++ b/pyautogui/__init__.py @@ -30,7 +30,7 @@ from __future__ import absolute_import, division, print_function -__version__ = '0.9.33' +__version__ = '0.9.35' import collections import sys diff --git a/pyautogui/_pyautogui_win.py b/pyautogui/_pyautogui_win.py index 34f861e..fd1c217 100644 --- a/pyautogui/_pyautogui_win.py +++ b/pyautogui/_pyautogui_win.py @@ -10,6 +10,11 @@ if sys.platform != 'win32': raise Exception('The pyautogui_win module should only be loaded on a Windows system.') + +# Fixes the scaling issues where PyAutoGUI was reporting the wrong resolution: +ctypes.windll.user32.SetProcessDPIAware() + + """ A lot of this code is probably repeated from win32 extensions module, but I didn't want to have that dependency.