]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/font.cpp
switching to autorelease
[wxWidgets.git] / src / x11 / font.cpp
index c5b726de0ee426260cb3b0d7892883098aa96a00..32ebc2ac8531de13dd480e0945118f67b259a675 100644 (file)
@@ -164,6 +164,8 @@ protected:
 #endif
 };
 
+#define M_FONTDATA ((wxFontRefData*)m_refData)
+
 // ----------------------------------------------------------------------------
 // wxFontRefData
 // ----------------------------------------------------------------------------
@@ -243,6 +245,9 @@ void wxFontRefData::InitFromNative()
             break;
     }
 
+// Not defined in some Pango versions
+#define wxPANGO_WEIGHT_SEMIBOLD 600
+
     switch (pango_font_description_get_weight( desc ))
     {
         case PANGO_WEIGHT_ULTRALIGHT:
@@ -258,7 +263,7 @@ void wxFontRefData::InitFromNative()
             m_weight = wxFONTWEIGHT_NORMAL;
             break;
 
-        case PANGO_WEIGHT_SEMIBOLD:
+        case wxPANGO_WEIGHT_SEMIBOLD:
         case PANGO_WEIGHT_BOLD:
         case PANGO_WEIGHT_ULTRABOLD:
         case PANGO_WEIGHT_HEAVY: