We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d2214 commit 1f2b62eCopy full SHA for 1f2b62e
mss/windows.py
@@ -92,7 +92,10 @@ def __init__(self, **_):
92
self.user32.PROCESS_PER_MONITOR_DPI_AWARE
93
)
94
except AttributeError:
95
- self.user32.SetProcessDPIAware()
+ try:
96
+ self.user32.SetProcessDPIAware()
97
+ except AttributeError:
98
+ pass # Windows XP doesn't have SetProcessDPIAware
99
100
self._srcdc = self.user32.GetWindowDC(0)
101
self._memdc = self.gdi32.CreateCompatibleDC(self._srcdc)
0 commit comments