small Motif compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-11-08 15:59:33 +00:00
parent ea9144a3bc
commit 0d0837053c
2 changed files with 3 additions and 3 deletions

View 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

View 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,