From: Stefan Csomor Date: Tue, 24 Mar 2009 17:54:51 +0000 (+0000) Subject: correcting inverted conditions of r59725 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ca6396c489a091cb0760e48236bf1174e6667f2?hp=e538985edcc645878a1bbeb3dc3e898e9d29ad11 correcting inverted conditions of r59725 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index 4160d73acf..c7674ea5db 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -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 );