mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +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) {
|
if (dpiAwarenessContext != NULL) {
|
||||||
dpiAwareness =
|
dpiAwareness =
|
||||||
SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
|
SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
|
||||||
|
} else {
|
||||||
|
dpiAwareness = SetThreadDpiAwarenessContext_function((HANDLE)-3);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
|
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user