File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -363,11 +363,12 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
363
363
GetWindowDpiAwarenessContext_function = (Func_GetWindowDpiAwarenessContext
364
364
)GetProcAddress (user32 , "GetWindowDpiAwarenessContext" );
365
365
if (screens == -1 && GetWindowDpiAwarenessContext_function != NULL ) {
366
- dpiAwareness =
367
- GetWindowDpiAwarenessContext_function (wnd );
366
+ dpiAwareness = GetWindowDpiAwarenessContext_function (wnd );
368
367
}
369
368
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
370
- dpiAwareness = SetThreadDpiAwarenessContext_function (dpiAwareness == NULL ? (HANDLE )- 3 : dpiAwareness );
369
+ dpiAwareness = SetThreadDpiAwarenessContext_function (
370
+ dpiAwareness == NULL ? (HANDLE )- 3 : dpiAwareness
371
+ );
371
372
}
372
373
373
374
if (screens == 1 ) {
You can’t perform that action at this time.
0 commit comments