Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 5, 2024
1 parent 86047d5 commit 4105f0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4105f0d

Please sign in to comment.