[gimp] Bug 789728 - Screenshot whole screen (Windows 10) only grabs screen...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 789728 - Screenshot whole screen (Windows 10) only grabs screen...
- Date: Sat, 24 Feb 2018 17:33:15 +0000 (UTC)
commit 653798146e9ab5b0f8455edd4573d1c70d45bb0f
Author: Simon Mueller <s mueller hn web de>
Date: Sat Feb 24 17:23:05 2018 +0100
Bug 789728 - Screenshot whole screen (Windows 10) only grabs screen...
... from first monitor
While researching the cause for the missing window contents (bug
793722), I noticed that the full screen capture mode was also not
working as expected. No matter how many monitors were connected, it only
ever captured the contents of the main monitor. This patch adjusts the
source rectangle for the BitBlt copy operation so that multiple monitors
are captured correctly.
plug-ins/screenshot/screenshot-win32.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-win32.c b/plug-ins/screenshot/screenshot-win32.c
index 2fe1ef6..d3075a1 100644
--- a/plug-ins/screenshot/screenshot-win32.c
+++ b/plug-ins/screenshot/screenshot-win32.c
@@ -467,10 +467,10 @@ doCapture (HWND selectedHwnd)
else
{
/* Get the screen's rectangle */
- rect.top = 0;
- rect.bottom = GetDeviceCaps (hdcSrc, VERTRES);
- rect.left = 0;
- rect.right = GetDeviceCaps (hdcSrc, HORZRES);
+ rect.top = GetSystemMetrics (SM_YVIRTUALSCREEN);
+ rect.bottom = GetSystemMetrics (SM_YVIRTUALSCREEN) + GetSystemMetrics (SM_CYVIRTUALSCREEN);
+ rect.left = GetSystemMetrics (SM_XVIRTUALSCREEN);
+ rect.right = GetSystemMetrics (SM_XVIRTUALSCREEN) + GetSystemMetrics (SM_CXVIRTUALSCREEN);
}
if (!hdcSrc)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]