]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/aga.cpp
changed default size, because MacOS X was using the boundaries differently
[wxWidgets.git] / src / mac / carbon / aga.cpp
index 572caed82a5c41215c718e61a06dd9146efb8563..64827558b00742659d8f244a23b72ec7b4690d9d 100644 (file)
@@ -2,9 +2,9 @@
 #include "wx/mac/uma.h"
 #include "wx/mac/aga.h"
 
-#if !TARGET_CARBON
+#if 0 // TO BE REMOVED SOON
 
-#include <extcdef.h>
+//#include <extcdef.h>
 #include <PictUtils.h>
 
 pascal SInt32 AGAProgressBarDefProc (SInt16 procID, ControlHandle theControl, ControlDefProcMessage message, SInt32 param);
@@ -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);