]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/button.mm
Keep the key up/down event consistency without relying on toupper()
[wxWidgets.git] / src / cocoa / button.mm
index 5ae10895f687c9394808b24c8be45ff3c882dbe7..a00ff71329d1f3302496a014d99f4159edb01e03 100644 (file)
@@ -106,6 +106,6 @@ wxSize wxButtonBase::GetDefaultSize()
 {
     static NSRect cocoaRect = MakeNSButtonDefaultRect();
     // Apple HIG says OK/Cancel buttons have default width of 68.
-    return wxSize(68,(int)ceilf(cocoaRect.size.height));
+    return wxSize(68,(int)ceil(cocoaRect.size.height));
 }