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

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

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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
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) {
Wez 2015/06/10 17:39:31 This changes behaviour in the case of showCmd=SW_S
Peter Kasting 2015/06/11 04:31:41 Right, I goofed up in my mental arithmetic thinkin
Wez 2015/06/11 17:00:48 Ugh... seems a waste to break this out to a separa
DesktopSize border = DesktopSize(GetSystemMetrics(SM_CXSIZEFRAME),
GetSystemMetrics(SM_CYSIZEFRAME));
*cropped_rect = DesktopRect::MakeLTRB(

Powered by Google App Engine
This is Rietveld 408576698