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 f682197 commit 7763350Copy full SHA for 7763350
src/display.c
@@ -368,6 +368,8 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
368
if (dpiAwarenessContext != NULL) {
369
dpiAwareness =
370
SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
371
+ } else {
372
+ dpiAwareness = SetThreadDpiAwarenessContext_function((HANDLE)-3);
373
}
374
} else {
375
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
0 commit comments