From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Fri, 6 Feb 2004 16:24:52 +0000 (+0000)
Subject: conditional compilation for compositing
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d66c3960d541cf9e3ba10519a49a9e34b4ddfc81?ds=inline

conditional compilation for compositing




git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp
index 70d0f1e348..7541500cfc 100644
--- a/src/mac/carbon/toplevel.cpp
+++ b/src/mac/carbon/toplevel.cpp
@@ -1,11 +1,11 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        mac/toplevel.cpp
-// Purpose:     implements wxTopLevelWindow for MSW
-// Author:      Vadim Zeitlin
+// Purpose:     implements wxTopLevelWindow for Mac
+// Author:      Stefan Csomor
 // Modified by:
 // Created:     24.09.01
 // RCS-ID:      $Id$
-// Copyright:   (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright:   (c) 2001-2004 Stefan Csomor
 // License:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -738,13 +738,15 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
 
     //this setup lets us have compositing and non-compositing 
     //windows in the same application. 
-    
+  
+#if UNIVERSAL_INTERFACES_VERSION >= 0x0400  
     if ( wxTopLevelWindowMac::s_macWindowCompositing )
     {
         attr |= kWindowCompositingAttribute;
         m_macUsesCompositing = TRUE;
     }
     else
+#endif
     {
         m_macUsesCompositing = FALSE;
     }
diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp
index 70d0f1e348..7541500cfc 100644
--- a/src/mac/toplevel.cpp
+++ b/src/mac/toplevel.cpp
@@ -1,11 +1,11 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        mac/toplevel.cpp
-// Purpose:     implements wxTopLevelWindow for MSW
-// Author:      Vadim Zeitlin
+// Purpose:     implements wxTopLevelWindow for Mac
+// Author:      Stefan Csomor
 // Modified by:
 // Created:     24.09.01
 // RCS-ID:      $Id$
-// Copyright:   (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright:   (c) 2001-2004 Stefan Csomor
 // License:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -738,13 +738,15 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
 
     //this setup lets us have compositing and non-compositing 
     //windows in the same application. 
-    
+  
+#if UNIVERSAL_INTERFACES_VERSION >= 0x0400  
     if ( wxTopLevelWindowMac::s_macWindowCompositing )
     {
         attr |= kWindowCompositingAttribute;
         m_macUsesCompositing = TRUE;
     }
     else
+#endif
     {
         m_macUsesCompositing = FALSE;
     }