mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Lint fix
This commit is contained in:
parent
a6c941ac2c
commit
acba5c47f8
|
@ -363,11 +363,12 @@ PyImaging_GrabScreenWin32(PyObject *self, PyObject *args) {
|
||||||
GetWindowDpiAwarenessContext_function = (Func_GetWindowDpiAwarenessContext
|
GetWindowDpiAwarenessContext_function = (Func_GetWindowDpiAwarenessContext
|
||||||
)GetProcAddress(user32, "GetWindowDpiAwarenessContext");
|
)GetProcAddress(user32, "GetWindowDpiAwarenessContext");
|
||||||
if (screens == -1 && GetWindowDpiAwarenessContext_function != NULL) {
|
if (screens == -1 && GetWindowDpiAwarenessContext_function != NULL) {
|
||||||
dpiAwareness =
|
dpiAwareness = GetWindowDpiAwarenessContext_function(wnd);
|
||||||
GetWindowDpiAwarenessContext_function(wnd);
|
|
||||||
}
|
}
|
||||||
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
|
// DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = ((DPI_CONTEXT_HANDLE)-3)
|
||||||
dpiAwareness = SetThreadDpiAwarenessContext_function(dpiAwareness == NULL ? (HANDLE)-3 : dpiAwareness);
|
dpiAwareness = SetThreadDpiAwarenessContext_function(
|
||||||
|
dpiAwareness == NULL ? (HANDLE)-3 : dpiAwareness
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (screens == 1) {
|
if (screens == 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user