]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/aga.cpp
More build system polishing.. mostly. Some stuff ported over from
[wxWidgets.git] / src / mac / aga.cpp
index 1f3310aca5b289cd5c03ea8298da40ef2b2ee830..9a752cbe6d9fe609844955e65a3f0605cfeef32e 100644 (file)
@@ -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() ;
        }
 }