X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdb2f6a2c0ef13c7df825be5b73a0e71248871e5..4d8209b9070ea7120078e83a648f3627e57bc15a:/src/osx/utils_osx.cpp?ds=sidebyside diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index e1765e81d1..7eb431ad86 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -35,21 +35,13 @@ // #include "MoreFilesX.h" -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 - #include -#endif +#include #include "wx/osx/private.h" #include "wx/osx/private/timer.h" #include "wx/evtloop.h" -#if defined(__MWERKS__) && wxUSE_UNICODE -#if __MWERKS__ < 0x4100 - #include -#endif -#endif - // Check whether this window wants to process messages, e.g. Stop button // in long calculations. bool wxCheckForInterrupt(wxWindow *WXUNUSED(wnd)) @@ -96,6 +88,7 @@ int wxDisplayDepth() theDepth = 32; // some reasonable default CFRelease(encoding); + CGDisplayModeRelease(currentMode); } else #endif