X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/mac/aga.cpp?ds=inline diff --git a/src/mac/aga.cpp b/src/mac/aga.cpp index 0185303bd1..9a752cbe6d 100644 --- a/src/mac/aga.cpp +++ b/src/mac/aga.cpp @@ -1,3 +1,4 @@ +#include "wx/dc.h" #include "wx/mac/uma.h" #include "wx/mac/aga.h" @@ -2585,7 +2586,7 @@ void AGAPortHelper::Setup( GrafPtr newport ) GetPenState( &oldPenState ) ; GetBackColor( &oldBackColor ) ; GetForeColor( &oldForeColor ) ; - + wxASSERT( clip == NULL ) ; clip = NewRgn() ; GetClip( clip ); font = GetPortTextFont( newport); @@ -2607,6 +2608,7 @@ AGAPortHelper::~AGAPortHelper() if ( clip ) { SetPort( nport ) ; + PenNormal() ; SetClip( clip ) ; DisposeRgn( clip ) ; RGBForeColor(&oldForeColor);