Open GoogleCodeExporter opened 9 years ago
Further to my bug post, this is specifically related to the button "Capture
Screen Region" and NOT "Capture Visible Content" or "Capture Page Region".
Original comment by mbgilb...@gmail.com
on 30 Jun 2011 at 12:46
Same problem exactly. Only works on Primary monitor, not 2nd one.
Original comment by Jesse.Sc...@gmail.com
on 30 Jun 2011 at 2:40
I met the same issue when selecting "Capture Screen Region". Multiple monitor
support is preferred.
Original comment by xiaochun...@gmail.com
on 17 Jan 2013 at 3:17
Just making changes at 2 places to support multiple monitor. Please see the
following code snippet:
File capture_window.cc, method bool CaptureWindow::Init(), line #28:
change from:
GetWindowRect(desktop_hwnd, &rect);
window_width_ = rect.right - rect.left;
window_height_ = rect.bottom - rect.top;
to:
if(GetSystemMetrics(SM_CMONITORS) > 1){
window_width_ = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
window_height_ = ::GetSystemMetrics(SM_CYVIRTUALSCREEN);
}
else{
GetWindowRect(desktop_hwnd, &rect);
window_width_ = rect.right - rect.left;
window_height_ = rect.bottom - rect.top;
}
File screen_capture_plugin.cc, method INT_PTR CALLBACK Preview(...), line #99 ~
line #103,
change to:
RECT rect;
int windowWidth;
int windowHeight;
if(GetSystemMetrics(SM_CMONITORS) > 1){
rect.left = ::GetSystemMetrics(SM_XVIRTUALSCREEN);
rect.top = ::GetSystemMetrics(SM_YVIRTUALSCREEN);
windowWidth = ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
windowHeight = ::GetSystemMetrics(SM_CYVIRTUALSCREEN);
}
else{
GetWindowRect(GetDesktopWindow(), &rect);
windowWidth = rect.right - rect.left;
windowHeight = rect.bottom - rect.top;
}
SetWindowPos(hDlg, HWND_TOPMOST,
rect.left, rect.top, windowWidth,
windowHeight, SWP_SHOWWINDOW|SWP_NOREDRAW);
Original comment by xiaochun...@gmail.com
on 17 Jan 2013 at 5:52
Attachments:
Same issue on Macbook Pro OSX v 10.9.X
Original comment by lucasopt...@gmail.com
on 27 Dec 2013 at 1:54
Original issue reported on code.google.com by
mbgilb...@gmail.com
on 30 Jun 2011 at 12:43