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 86047d5 commit 4105f0dCopy full SHA for 4105f0d
src/display.c
@@ -359,9 +359,11 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
359
)GetProcAddress(user32, "SetThreadDpiAwarenessContext");
360
if (SetThreadDpiAwarenessContext_function != NULL) {
361
if (screens == -1) {
362
- DPI_AWARENESS_CONTEXT dpiAwarenessContext = GetWindowDpiAwarenessContext(wnd);
+ DPI_AWARENESS_CONTEXT dpiAwarenessContext =
363
+ GetWindowDpiAwarenessContext(wnd);
364
if (dpiAwarenessContext != NULL) {
- dpiAwareness = SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
365
+ dpiAwareness =
366
+ SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
367
}
368
} else {
369
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
0 commit comments