X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fde6fcc9b551340a194ae4c726db5ab64b5c594..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/mac/aga.cpp diff --git a/src/mac/aga.cpp b/src/mac/aga.cpp index 1f3310aca5..64827558b0 100644 --- a/src/mac/aga.cpp +++ b/src/mac/aga.cpp @@ -2,9 +2,9 @@ #include "wx/mac/uma.h" #include "wx/mac/aga.h" -#if !TARGET_CARBON +#if 0 // TO BE REMOVED SOON -#include +//#include #include 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); @@ -2620,7 +2621,6 @@ AGAPortHelper::~AGAPortHelper() TextMode( mode ); SetOrigin( 0 , 0 ) ; SetPort( port ) ; - wxDC::MacInvalidateSetup() ; } }