]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
implemented fallback for AlphaBlend() for the systems not supporting it
[wxWidgets.git] / src / common / sizer.cpp
index 5a9c11a99f4aa066d0f4e952563e9cfba6c26e29..21f311e59b65958a5fe4f494d48c0e133843c870 100644 (file)
@@ -1446,6 +1446,9 @@ static void GetStaticBoxBorders( wxStaticBox *box,
 {
     // this has to be done platform by platform as there is no way to
     // guess the thickness of a wxStaticBox border
+#ifdef __WXCOCOA__
+    box->GetBordersForSizer(borderTop,borderOther);
+#else // __WXCOCOA__
 #ifdef __WXGTK__
     if ( box->GetLabel().IsEmpty() )
         *borderTop = 5;
@@ -1454,6 +1457,7 @@ static void GetStaticBoxBorders( wxStaticBox *box,
         *borderTop = box->GetCharHeight();
 
     *borderOther = 5;
+#endif // __WXCOCOA__
 }
 
 void wxStaticBoxSizer::RecalcSizes()