mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Reverted unrelated change
This commit is contained in:
parent
fa6b80fddf
commit
19426417ff
|
@ -345,8 +345,8 @@ PyImaging_GrabScreenWin32(PyObject* self, PyObject* args)
|
||||||
width = GetSystemMetrics(SM_CXVIRTUALSCREEN);
|
width = GetSystemMetrics(SM_CXVIRTUALSCREEN);
|
||||||
height = GetSystemMetrics(SM_CYVIRTUALSCREEN);
|
height = GetSystemMetrics(SM_CYVIRTUALSCREEN);
|
||||||
} else {
|
} else {
|
||||||
width = GetSystemMetrics(SM_CXSCREEN);
|
width = GetDeviceCaps(screen, HORZRES);
|
||||||
height = GetSystemMetrics(SM_CYSCREEN);
|
height = GetDeviceCaps(screen, VERTRES);
|
||||||
}
|
}
|
||||||
|
|
||||||
bitmap = CreateCompatibleBitmap(screen, width, height);
|
bitmap = CreateCompatibleBitmap(screen, width, height);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user