From 19426417ff25397dc3b34a3ea4fb447e85381030 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 17 Aug 2019 20:38:54 +1000 Subject: [PATCH] Reverted unrelated change --- src/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display.c b/src/display.c index fa22b736f..8a78b718a 100644 --- a/src/display.c +++ b/src/display.c @@ -345,8 +345,8 @@ PyImaging_GrabScreenWin32(PyObject* self, PyObject* args) width = GetSystemMetrics(SM_CXVIRTUALSCREEN); height = GetSystemMetrics(SM_CYVIRTUALSCREEN); } else { - width = GetSystemMetrics(SM_CXSCREEN); - height = GetSystemMetrics(SM_CYSCREEN); + width = GetDeviceCaps(screen, HORZRES); + height = GetDeviceCaps(screen, VERTRES); } bitmap = CreateCompatibleBitmap(screen, width, height);