]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected scoping
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 24 Jun 2002 15:26:06 +0000 (15:26 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 24 Jun 2002 15:26:06 +0000 (15:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/control.cpp
src/mac/control.cpp

index b56dee0d186b0f1114d6571817b4063df8ecb024..6570c1303bca0af2695fd3539e4bc967c49af35e 100644 (file)
@@ -68,15 +68,17 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
        switch( iMessage )
        {
                case kControlMsgSetUpBackground :
        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 :
                        }
                        break ;
                default :
index b56dee0d186b0f1114d6571817b4063df8ecb024..6570c1303bca0af2695fd3539e4bc967c49af35e 100644 (file)
@@ -68,15 +68,17 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
        switch( iMessage )
        {
                case kControlMsgSetUpBackground :
        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 :
                        }
                        break ;
                default :