Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / remoting / host / desktop_resizer_mac.cc
index 8bb4c46..ef4659f 100644 (file)
@@ -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)));