]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/control.cpp
keep name of wxmac icon for application bundles unstead of renaming it
[wxWidgets.git] / 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 :