corrected a bug in dc which resetted the port , exchanged the wxchoice implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-10 05:27:07 +00:00
parent 1c6466854c
commit b668a73527
7 changed files with 275 additions and 183 deletions

View 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);