X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/50ccc908dc4e6376de91edd7f74018898fd690b1..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/glcanvas.cpp diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index b3a2a81245..5fe1661ddd 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -312,6 +312,19 @@ wxGLCanvas::~wxGLCanvas() aglDestroyPixelFormat(m_aglFormat); } +/* static */ +bool wxGLCanvasBase::IsDisplaySupported(const int *attribList) +{ + AGLPixelFormat aglFormat = ChoosePixelFormat(attribList); + + if ( !aglFormat ) + return false; + + aglDestroyPixelFormat(aglFormat); + + return true; +} + bool wxGLCanvas::SwapBuffers() { AGLContext context = aglGetCurrentContext(); @@ -402,7 +415,7 @@ void wxGLCanvas::MacTopLevelWindowChangedPosition() void wxGLCanvas::MacVisibilityChanged() { - if ( MacIsReallyShown() != m_macCanvasIsShown ) + if ( IsShownOnScreen() != m_macCanvasIsShown ) { m_macCanvasIsShown = !m_macCanvasIsShown; MacUpdateView();