minor reformat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -265,7 +265,7 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
|||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
bool created = false ;
|
bool created = false ;
|
||||||
CGContextRef cgContext = 0 ;
|
CGContextRef cgContext = NULL ;
|
||||||
if ( cEvent.GetParameter<CGContextRef>(kEventParamCGContextRef, &cgContext) != noErr )
|
if ( cEvent.GetParameter<CGContextRef>(kEventParamCGContextRef, &cgContext) != noErr )
|
||||||
{
|
{
|
||||||
wxASSERT( thisWindow->GetPeer()->IsCompositing() == false ) ;
|
wxASSERT( thisWindow->GetPeer()->IsCompositing() == false ) ;
|
||||||
@@ -292,7 +292,8 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
|||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
CGContextSetRGBFillColor( cgContext , 1.0 , 1.0 , 1.0 , 1.0 ) ;
|
CGContextSetRGBFillColor( cgContext , 1.0 , 1.0 , 1.0 , 1.0 ) ;
|
||||||
CGContextFillRect(cgContext , CGRectMake( 0 , 0 ,
|
CGContextFillRect( cgContext ,
|
||||||
|
CGRectMake( 0 , 0 ,
|
||||||
controlBounds.right - controlBounds.left ,
|
controlBounds.right - controlBounds.left ,
|
||||||
controlBounds.bottom - controlBounds.top ) );
|
controlBounds.bottom - controlBounds.top ) );
|
||||||
#endif
|
#endif
|
||||||
@@ -1270,7 +1271,7 @@ void wxWindowMac::DoScreenToClient(int *x, int *y) const
|
|||||||
void wxWindowMac::DoClientToScreen(int *x, int *y) const
|
void wxWindowMac::DoClientToScreen(int *x, int *y) const
|
||||||
{
|
{
|
||||||
WindowRef window = (WindowRef) MacGetTopLevelWindowRef() ;
|
WindowRef window = (WindowRef) MacGetTopLevelWindowRef() ;
|
||||||
wxCHECK_RET( window , wxT("TopLevel Window Missing") ) ;
|
wxCHECK_RET( window , wxT("TopLevel window missing") ) ;
|
||||||
|
|
||||||
wxPoint origin = GetClientAreaOrigin() ;
|
wxPoint origin = GetClientAreaOrigin() ;
|
||||||
if (x)
|
if (x)
|
||||||
|
Reference in New Issue
Block a user