From 4105f0d98a9c5a2c43af900b1fde629bd5ffd0f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 03:49:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/display.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/display.c b/src/display.c index 1dd55cd1302..711803f36c4 100644 --- a/src/display.c +++ b/src/display.c @@ -359,9 +359,11 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) { )GetProcAddress(user32, "SetThreadDpiAwarenessContext"); if (SetThreadDpiAwarenessContext_function != NULL) { if (screens == -1) { - DPI_AWARENESS_CONTEXT dpiAwarenessContext = GetWindowDpiAwarenessContext(wnd); + DPI_AWARENESS_CONTEXT dpiAwarenessContext = + GetWindowDpiAwarenessContext(wnd); if (dpiAwarenessContext != NULL) { - dpiAwareness = SetThreadDpiAwarenessContext_function(dpiAwarenessContext); + dpiAwareness = + SetThreadDpiAwarenessContext_function(dpiAwarenessContext); } } else { // DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)