diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 03:02:06 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-31 03:02:06 +0000 |
commit | de9aeb5651eaa2f22cca0e3dfa634a28d1d2065c (patch) | |
tree | 997bd5b6218398132f4f60b64ea7852999f2e926 /remoting | |
parent | f94b84eb9b38b45d30cb4565b7820e07fe6c29fe (diff) | |
download | chromium_src-de9aeb5651eaa2f22cca0e3dfa634a28d1d2065c.zip chromium_src-de9aeb5651eaa2f22cca0e3dfa634a28d1d2065c.tar.gz chromium_src-de9aeb5651eaa2f22cca0e3dfa634a28d1d2065c.tar.bz2 |
Fix Mac resolution bug.
This was broken by https://codereview.chromium.org/54273006.
BUG=339639
Review URL: https://codereview.chromium.org/138213010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/desktop_resizer_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/desktop_resizer_mac.cc b/remoting/host/desktop_resizer_mac.cc index 8bb4c46..ef4659f 100644 --- a/remoting/host/desktop_resizer_mac.cc +++ b/remoting/host/desktop_resizer_mac.cc @@ -78,7 +78,7 @@ void DesktopResizerMac::SetResolution(const ScreenResolution& resolution) { CGDisplayModeRef best_mode = NULL; for (std::list<ScreenResolution>::const_iterator i = resolutions.begin(); i != resolutions.end(); ++i, ++index) { - if (!i->Equals(resolution)) { + if (i->Equals(resolution)) { CGDisplayModeRef mode = const_cast<CGDisplayModeRef>( static_cast<const CGDisplayMode*>( CFArrayGetValueAtIndex(modes, index))); |