UMADrawControl is not to be used anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
785f5eaa05
commit
aa57eeea83
@ -543,24 +543,6 @@ void UMAActivateControl( ControlRef inControl )
|
||||
#endif
|
||||
}
|
||||
|
||||
void UMADrawControl( ControlRef inControl )
|
||||
{
|
||||
#if TARGET_API_MAC_CARBON
|
||||
::Draw1Control( inControl );
|
||||
#else
|
||||
WindowRef theWindow = GetControlOwner(inControl) ;
|
||||
wxMacPortStateHelper help( (GrafPtr) GetWindowPort(theWindow) ) ;
|
||||
RgnHandle updateRgn = NewRgn() ;
|
||||
GetWindowUpdateRgn( theWindow , updateRgn ) ;
|
||||
Point zero = { 0 , 0 } ;
|
||||
LocalToGlobal( &zero ) ;
|
||||
OffsetRgn( updateRgn , -zero.h , -zero.v ) ;
|
||||
::DrawControlInCurrentPort( inControl ) ;
|
||||
InvalWindowRgn( theWindow, updateRgn) ;
|
||||
DisposeRgn( updateRgn ) ;
|
||||
#endif
|
||||
}
|
||||
|
||||
void UMAMoveControl( ControlRef inControl , short x , short y )
|
||||
{
|
||||
#if !TARGET_API_MAC_OSX
|
||||
|
Loading…
Reference in New Issue
Block a user