From 6ca6396c489a091cb0760e48236bf1174e6667f2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 24 Mar 2009 17:54:51 +0000 Subject: [PATCH] correcting inverted conditions of r59725 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );