corrected scoping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,15 +68,17 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
|
||||
switch( iMessage )
|
||||
{
|
||||
case kControlMsgSetUpBackground :
|
||||
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
|
||||
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
|
||||
{
|
||||
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
|
||||
// SetThemeBackground( iDepth , iIsColor ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
status = paramErr ;
|
||||
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
|
||||
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
|
||||
{
|
||||
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
|
||||
// SetThemeBackground( iDepth , iIsColor ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
status = paramErr ;
|
||||
}
|
||||
}
|
||||
break ;
|
||||
default :
|
||||
|
@@ -68,15 +68,17 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
|
||||
switch( iMessage )
|
||||
{
|
||||
case kControlMsgSetUpBackground :
|
||||
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
|
||||
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
|
||||
{
|
||||
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
|
||||
// SetThemeBackground( iDepth , iIsColor ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
status = paramErr ;
|
||||
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
|
||||
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
|
||||
{
|
||||
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
|
||||
// SetThemeBackground( iDepth , iIsColor ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
status = paramErr ;
|
||||
}
|
||||
}
|
||||
break ;
|
||||
default :
|
||||
|
Reference in New Issue
Block a user