conditional compilation for compositing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: mac/toplevel.cpp
|
// Name: mac/toplevel.cpp
|
||||||
// Purpose: implements wxTopLevelWindow for MSW
|
// Purpose: implements wxTopLevelWindow for Mac
|
||||||
// Author: Vadim Zeitlin
|
// Author: Stefan Csomor
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 24.09.01
|
// Created: 24.09.01
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
|
// Copyright: (c) 2001-2004 Stefan Csomor
|
||||||
// License: wxWindows licence
|
// License: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -738,13 +738,15 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
|||||||
|
|
||||||
//this setup lets us have compositing and non-compositing
|
//this setup lets us have compositing and non-compositing
|
||||||
//windows in the same application.
|
//windows in the same application.
|
||||||
|
|
||||||
|
#if UNIVERSAL_INTERFACES_VERSION >= 0x0400
|
||||||
if ( wxTopLevelWindowMac::s_macWindowCompositing )
|
if ( wxTopLevelWindowMac::s_macWindowCompositing )
|
||||||
{
|
{
|
||||||
attr |= kWindowCompositingAttribute;
|
attr |= kWindowCompositingAttribute;
|
||||||
m_macUsesCompositing = TRUE;
|
m_macUsesCompositing = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
m_macUsesCompositing = FALSE;
|
m_macUsesCompositing = FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: mac/toplevel.cpp
|
// Name: mac/toplevel.cpp
|
||||||
// Purpose: implements wxTopLevelWindow for MSW
|
// Purpose: implements wxTopLevelWindow for Mac
|
||||||
// Author: Vadim Zeitlin
|
// Author: Stefan Csomor
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 24.09.01
|
// Created: 24.09.01
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
|
// Copyright: (c) 2001-2004 Stefan Csomor
|
||||||
// License: wxWindows licence
|
// License: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -738,13 +738,15 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
|||||||
|
|
||||||
//this setup lets us have compositing and non-compositing
|
//this setup lets us have compositing and non-compositing
|
||||||
//windows in the same application.
|
//windows in the same application.
|
||||||
|
|
||||||
|
#if UNIVERSAL_INTERFACES_VERSION >= 0x0400
|
||||||
if ( wxTopLevelWindowMac::s_macWindowCompositing )
|
if ( wxTopLevelWindowMac::s_macWindowCompositing )
|
||||||
{
|
{
|
||||||
attr |= kWindowCompositingAttribute;
|
attr |= kWindowCompositingAttribute;
|
||||||
m_macUsesCompositing = TRUE;
|
m_macUsesCompositing = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
m_macUsesCompositing = FALSE;
|
m_macUsesCompositing = FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user