]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/aga.cpp
added wx/platform.h to the list of files and regenerated the makefiles
[wxWidgets.git] / src / mac / carbon / aga.cpp
index 1f3310aca5b289cd5c03ea8298da40ef2b2ee830..76e2d9505b4c76bdc3bbdbb2cb749f7305dcad27 100644 (file)
@@ -2,7 +2,7 @@
 #include "wx/mac/uma.h"
 #include "wx/mac/aga.h"
 
-#if !TARGET_CARBON
+#if 0 // TO BE REMOVED SOON
 
 #include <extcdef.h>
 #include <PictUtils.h>
@@ -2586,7 +2586,7 @@ void AGAPortHelper::Setup( GrafPtr newport )
        GetPenState( &oldPenState ) ;
        GetBackColor( &oldBackColor ) ;
        GetForeColor( &oldForeColor ) ;
-
+       wxASSERT( clip == NULL ) ;
        clip = NewRgn() ;
        GetClip( clip );
        font = GetPortTextFont( newport);
@@ -2608,6 +2608,7 @@ AGAPortHelper::~AGAPortHelper()
        if ( clip )
        {
                SetPort( nport ) ;
+               PenNormal() ;
                SetClip( clip ) ;
                DisposeRgn( clip ) ;
                RGBForeColor(&oldForeColor);
@@ -2620,7 +2621,6 @@ AGAPortHelper::~AGAPortHelper()
                TextMode( mode );
                SetOrigin( 0 , 0 ) ;
                SetPort( port ) ;
-               wxDC::MacInvalidateSetup() ;
        }
 }