]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/font.cpp
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git] / src / gtk1 / font.cpp
index 70260cca96aaf00b2d449ef6d74d4cf522c80ad5..a8524ccd8b7322a03fc29b7f92f314cb614c4def 100644 (file)
@@ -153,7 +153,7 @@ private:
     friend class wxFont;
 };
 
-#define M_FONTDATA (wxFontRefData*)m_refData)
+#define M_FONTDATA ((wxFontRefData*)m_refData)
 
 // ----------------------------------------------------------------------------
 // wxFontRefData
@@ -215,8 +215,8 @@ void wxFontRefData::InitFromNative()
         }
     }
 
-    switch ( wxToupper(*m_nativeFontInfo.
-                            GetXFontComponent(wxXLFD_SLANT).c_str()) )
+    switch ( wxToupper(m_nativeFontInfo.
+                           GetXFontComponent(wxXLFD_SLANT)[0u]).GetValue() )
     {
         case _T('I'):   // italique
             m_style = wxFONTSTYLE_ITALIC;