]> git.saurik.com Git - wxWidgets.git/commitdiff
correcting inverted conditions of r59725
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 24 Mar 2009 17:54:51 +0000 (17:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 24 Mar 2009 17:54:51 +0000 (17:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 );