mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Fallback to PER_MONITOR_AWARE
This commit is contained in:
parent
f68219713c
commit
7763350f07
|
@ -368,6 +368,8 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
|
|||
if (dpiAwarenessContext != NULL) {
|
||||
dpiAwareness =
|
||||
SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
|
||||
} else {
|
||||
dpiAwareness = SetThreadDpiAwarenessContext_function((HANDLE)-3);
|
||||
}
|
||||
} else {
|
||||
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user