Skip to content

Commit 4105f0d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 86047d5 commit 4105f0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/display.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,11 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
359359
)GetProcAddress(user32, "SetThreadDpiAwarenessContext");
360360
if (SetThreadDpiAwarenessContext_function != NULL) {
361361
if (screens == -1) {
362-
DPI_AWARENESS_CONTEXT dpiAwarenessContext = GetWindowDpiAwarenessContext(wnd);
362+
DPI_AWARENESS_CONTEXT dpiAwarenessContext =
363+
GetWindowDpiAwarenessContext(wnd);
363364
if (dpiAwarenessContext != NULL) {
364-
dpiAwareness = SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
365+
dpiAwareness =
366+
SetThreadDpiAwarenessContext_function(dpiAwarenessContext);
365367
}
366368
} else {
367369
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)

0 commit comments

Comments
 (0)