From f03c50fa3b51961ef2cd2d3bc0229de1cafebaf2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 24 Jun 2002 15:26:06 +0000 Subject: [PATCH] corrected scoping git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/control.cpp | 18 ++++++++++-------- src/mac/control.cpp | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/mac/carbon/control.cpp b/src/mac/carbon/control.cpp index b56dee0d18..6570c1303b 100644 --- a/src/mac/carbon/control.cpp +++ b/src/mac/carbon/control.cpp @@ -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 : diff --git a/src/mac/control.cpp b/src/mac/control.cpp index b56dee0d18..6570c1303b 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -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 : -- 2.47.2