]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/tglbtn.cpp
avoid overdrawing, fixes #10865
[wxWidgets.git] / src / osx / carbon / tglbtn.cpp
index 9682aa306eefec8621650346a62f00f0324a90cd..51feb614024a320795f77e49a129cee97f85c4a2 100644 (file)
 
 wxWidgetImplType* wxWidgetImpl::CreateToggleButton( wxWindowMac* wxpeer, 
                                     wxWindowMac* parent, 
-                                    wxWindowID id
-                                    const wxString& label,
+                                    wxWindowID WXUNUSED(id)
+                                    const wxString& WXUNUSED(label),
                                     const wxPoint& pos, 
                                     const wxSize& size,
-                                    long style
-                                    long extraStyle)
+                                    long WXUNUSED(style)
+                                    long WXUNUSED(extraStyle))
 {
     Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ;
     
@@ -45,12 +45,12 @@ wxWidgetImplType* wxWidgetImpl::CreateToggleButton( wxWindowMac* wxpeer,
     
 wxWidgetImplType* wxWidgetImpl::CreateBitmapToggleButton( wxWindowMac* wxpeer, 
                                     wxWindowMac* parent, 
-                                    wxWindowID id
+                                    wxWindowID WXUNUSED(id)
                                     const wxBitmap& label,
                                     const wxPoint& pos, 
                                     const wxSize& size,
-                                    long style
-                                    long extraStyle)
+                                    long WXUNUSED(style)
+                                    long WXUNUSED(extraStyle))
 {    
     Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ;
     wxMacControl* peer = new wxMacControl(wxpeer) ;