[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-11-07 20:45:58 +00:00
parent a44b3067b0
commit 288d77efd6

View File

@ -365,7 +365,8 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
)GetProcAddress(user32, "GetWindowDpiAwarenessContext"); )GetProcAddress(user32, "GetWindowDpiAwarenessContext");
DPI_AWARENESS_CONTEXT dpiAwarenessContext = DPI_AWARENESS_CONTEXT dpiAwarenessContext =
GetWindowDpiAwarenessContext_function(wnd); GetWindowDpiAwarenessContext_function(wnd);
if (GetWindowDpiAwarenessContext_function != NULL && dpiAwarenessContext != NULL) { if (GetWindowDpiAwarenessContext_function != NULL &&
dpiAwarenessContext != NULL) {
dpiAwareness = dpiAwareness =
SetThreadDpiAwarenessContext_function(dpiAwarenessContext); SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
} else { } else {