X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c58f5c2c2b41a8ca054d69454610b1ec8c6919f..a46cbd24b4e40f981c172a0efef78e925a6fb8bd:/src/osx/core/display.cpp diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index aa292c8642..38ca6cba0c 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -93,7 +93,7 @@ static CGDisplayErr wxOSXGetDisplayList(CGDisplayCount maxDisplays, { CGDisplayErr error = kCGErrorSuccess; CGDisplayCount onlineCount; - + error = CGGetOnlineDisplayList(0,NULL,&onlineCount); if ( error == kCGErrorSuccess ) { @@ -108,7 +108,7 @@ static CGDisplayErr wxOSXGetDisplayList(CGDisplayCount maxDisplays, { if ( CGDisplayMirrorsDisplay(onlineDisplays[i]) != kCGNullDirectDisplay ) continue; - + if ( displays == NULL ) *displayCount += 1; else @@ -123,7 +123,7 @@ static CGDisplayErr wxOSXGetDisplayList(CGDisplayCount maxDisplays, } delete[] onlineDisplays; } - + } return error; }