File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -359,9 +359,9 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
359
359
user32 = LoadLibraryA ("User32.dll" );
360
360
SetThreadDpiAwarenessContext_function = (Func_SetThreadDpiAwarenessContext
361
361
)GetProcAddress (user32 , "SetThreadDpiAwarenessContext" );
362
- GetWindowDpiAwarenessContext_function = (Func_GetWindowDpiAwarenessContext
363
- )GetProcAddress (user32 , "GetWindowDpiAwarenessContext" );
364
362
if (SetThreadDpiAwarenessContext_function != NULL ) {
363
+ GetWindowDpiAwarenessContext_function = (Func_GetWindowDpiAwarenessContext
364
+ )GetProcAddress (user32 , "GetWindowDpiAwarenessContext" );
365
365
if (screens == -1 && GetWindowDpiAwarenessContext_function != NULL ) {
366
366
dpiAwareness =
367
367
GetWindowDpiAwarenessContext_function (wnd );
You can’t perform that action at this time.
0 commit comments