]> git.saurik.com Git - wxWidgets.git/commitdiff
Simplified OS X Panther detection code.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 14 Feb 2004 02:40:59 +0000 (02:40 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 14 Feb 2004 02:40:59 +0000 (02:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index 0e9587b4512c41715e814957114e7920f401075c..f077fcd102cc5b832ddd70666d4e05a8a334c378 100644 (file)
 #include "wx/notebook.h"
 #include "wx/listimpl.cpp"
 
+#ifdef __WXMAC__
+#   include "wx/mac/uma.h"
+#endif
+
 //---------------------------------------------------------------------------
 
 IMPLEMENT_CLASS(wxSizerItem, wxObject)
@@ -1555,15 +1559,11 @@ static void GetStaticBoxBorders( wxStaticBox *box,
 
     if ( extraTop == -1 )
     {
-        int verMaj, verMin;
-        (void) ::wxGetOsVersion(&verMaj, &verMin);
-
         // The minimal border used for the top. Later on the staticbox'
         // font height is added to this.
         extraTop = 0;
 
-        // Is the Mac OS version OS X Panther or higher?
-        if ( ((verMaj << 16) + verMin) >= 0x00100030 )
+        if ( UMAGetSystemVersion() >= 0x1030 /*Panther*/ )
         {
             // As indicated by the HIG, Panther needs an extra border of 11
             // pixels (otherwise overlapping occurs at the top). The "other"