]> git.saurik.com Git - wxWidgets.git/commitdiff
small Motif compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Nov 1999 15:59:33 +0000 (15:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Nov 1999 15:59:33 +0000 (15:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/fontutil.h
src/motif/font.cpp

index ada65aa9f3b308d01971ca1cd0e801ef8cc4ec23..836ed81705a62773adb79ae79b02dfc4dc187395 100644 (file)
@@ -13,8 +13,7 @@
 #define _WX_UNIX_FONTUTIL_H_
 
 #ifdef __X__
-    struct XFontStruct;
-    typedef XFontStruct *wxNativeFont;
+    typedef WXFontStructPtr wxNativeFont;
 #elif defined(__WXGTK__)
     typedef GdkFont *wxNativeFont;
 #else
index 10ab6faf5bd090cad51e3be9991d855ff8a3a285..048592aeb00c8dfc6dff5626606c98e9c4d96a5d 100644 (file)
@@ -360,7 +360,8 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
     }
 
     // not found, create a new one
-    XFontStruct *font = wxLoadQueryNearestFont(pointSize,
+    XFontStruct *font = (XFontStruct *)
+                        wxLoadQueryNearestFont(pointSize,
                                                M_FONTDATA->m_family,
                                                M_FONTDATA->m_style,
                                                M_FONTDATA->m_weight,