]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/button.cpp
rendering adjustments for OSX
[wxWidgets.git] / src / os2 / button.cpp
index 61b0d68fa46505f83d71744963c4474acb19dc78..c47b6dce3238619770aeb192b2c70dc780b6b7df 100644 (file)
@@ -47,9 +47,7 @@ bool wxButton::Create(
 , const wxPoint&                    rPos
 , const wxSize&                     rSize
 , long                              lStyle
-#if wxUSE_VALIDATORS
 , const wxValidator&                rValidator
-#endif
 , const wxString&                   rsName
 )
 {
@@ -313,7 +311,7 @@ void wxButton::SetDefaultStyle(
         if ((lStyle & BS_USERBUTTON) != BS_USERBUTTON)
         {
             if (bOn)
-                lStyle | BS_DEFAULT;
+                lStyle |= BS_DEFAULT;
             else
                 lStyle &= ~BS_DEFAULT;
             ::WinSetWindowULong(GetHwndOf(pBtn), QWL_STYLE, lStyle);