X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11d1adbfda13e56736ef62d07a7220134e62c5e5..f17e0be47983c76b2192890637edc2514802612d:/src/mac/carbon/uma.cpp diff --git a/src/mac/carbon/uma.cpp b/src/mac/carbon/uma.cpp index 68a62c217c..6a9fa8e53e 100644 --- a/src/mac/carbon/uma.cpp +++ b/src/mac/carbon/uma.cpp @@ -555,6 +555,7 @@ void UMAActivateControl( ControlHandle inControl ) void UMADrawControl( ControlHandle inControl ) { WindowRef theWindow = GetControlOwner(inControl) ; + wxMacPortStateHelper help( (GrafPtr) GetWindowPort(theWindow) ) ; RgnHandle updateRgn = NewRgn() ; GetWindowUpdateRgn( theWindow , updateRgn ) ; Point zero = { 0 , 0 } ; @@ -646,6 +647,7 @@ OSErr UMASetKeyboardFocus (WindowPtr inWindow, // events void UMAUpdateControls( WindowPtr inWindow , RgnHandle inRgn ) { + wxMacPortStateHelper help( (GrafPtr) GetWindowPort( (WindowRef) inWindow) ) ; RgnHandle updateRgn = NewRgn() ; GetWindowUpdateRgn( inWindow , updateRgn ) ; @@ -746,6 +748,7 @@ void wxMacPortStateHelper::Setup( GrafPtr newport ) { GetPort( &m_oldPort ) ; SetPort( newport ) ; + SetOrigin(0,0); wxASSERT_MSG( m_clip == NULL , wxT("Cannot call setup twice") ) ; m_clip = NewRgn() ; GetClip( m_clip );