]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/display.cpp
Setting eol-style property to CRLF for some project files.
[wxWidgets.git] / src / osx / core / display.cpp
index 4160d73acf260b67926e53b96bfd584a5cd5dda4..c7674ea5dba814ddf3345b277b733c0e09002f0b 100644 (file)
@@ -88,7 +88,7 @@ unsigned wxDisplayFactoryMacOSX::GetCount()
     CGDisplayCount count;
     CGDisplayErr err = CGGetActiveDisplayList(0, NULL, &count);
 
-    wxCHECK_MSG( err != CGDisplayNoErr, 0, "CGGetActiveDisplayList() failed" );
+    wxCHECK_MSG( err == CGDisplayNoErr, 0, "CGGetActiveDisplayList() failed" );
 
     return count;
 }
@@ -134,7 +134,7 @@ wxDisplayImpl *wxDisplayFactoryMacOSX::CreateDisplay(unsigned n)
     CGDirectDisplayID* theIDs = new CGDirectDisplayID[theCount];
 
     CGDisplayErr err = CGGetActiveDisplayList(theCount, theIDs, &theCount);
-    wxCHECK_MSG( err != CGDisplayNoErr, NULL, "CGGetActiveDisplayList() failed" );
+    wxCHECK_MSG( err == CGDisplayNoErr, NULL, "CGGetActiveDisplayList() failed" );
 
     wxASSERT( n < theCount );