From: Stefan Csomor Date: Mon, 29 Mar 2004 14:54:50 +0000 (+0000) Subject: UMADrawControl is not to be used anymore X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aa57eeea83fac24e9d188fa800bdc96c95f5bbeb UMADrawControl is not to be used anymore git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/uma.cpp b/src/mac/carbon/uma.cpp index aedb25e274..1c901902a6 100644 --- a/src/mac/carbon/uma.cpp +++ b/src/mac/carbon/uma.cpp @@ -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