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 c8a490f commit 28acfb1Copy full SHA for 28acfb1
mss/windows.py
@@ -89,7 +89,10 @@ def __init__(self):
89
self.user32.PROCESS_PER_MONITOR_DPI_AWARE
90
)
91
except AttributeError:
92
- self.user32.SetProcessDPIAware()
+ try:
93
+ self.user32.SetProcessDPIAware()
94
+ except AttributeError:
95
+ pass # Windows XP doesn't have SetProcessDPIAware
96
97
self._srcdc = self.user32.GetWindowDC(0)
98
self._memdc = self.gdi32.CreateCompatibleDC(self._srcdc)
0 commit comments