X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/facd6764872eede45605ba7c9dfa0e1d0c708fa2..c2517b523979d4beaabbbe3538df1b49d682748d:/src/mac/carbon/uma.cpp 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