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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user