Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: webrtc/modules/desktop_capture/win/window_capture_utils.cc

Issue 1180673009: Fix WebRTC window-capture to check for maximized state correctly. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Accidentally deleted my original branch Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/win/window_capture_utils.cc
diff --git a/webrtc/modules/desktop_capture/win/window_capture_utils.cc b/webrtc/modules/desktop_capture/win/window_capture_utils.cc
index 03e021954b191d51ab68425cde4fa9b74f17af38..bfe7363f32d8c69b64a59e2388b47cb1a6c08ef5 100644
--- a/webrtc/modules/desktop_capture/win/window_capture_utils.cc
+++ b/webrtc/modules/desktop_capture/win/window_capture_utils.cc
@@ -29,7 +29,7 @@ GetCroppedWindowRect(HWND window,
*original_rect = DesktopRect::MakeLTRB(
rect.left, rect.top, rect.right, rect.bottom);
- if (window_placement.showCmd & SW_SHOWMAXIMIZED) {
+ if (window_placement.showCmd == SW_SHOWMAXIMIZED) {
DesktopSize border = DesktopSize(GetSystemMetrics(SM_CXSIZEFRAME),
GetSystemMetrics(SM_CYSIZEFRAME));
*cropped_rect = DesktopRect::MakeLTRB(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698