X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93ccaed86983970c4a2aa5af34593781e5b8964f..f641dada6429d58d954234ca1abc770e7bee7721:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index c9b7ca780e..9ce3b3cce0 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -21,17 +21,23 @@ #pragma implementation "font.h" #endif +#ifdef __VMS +#pragma message disable nosimpint +#include "wx/vms_x_fix.h" +#endif +#include +#ifdef __VMS +#pragma message enable nosimpint +#endif + #include "wx/defs.h" #include "wx/string.h" #include "wx/font.h" #include "wx/gdicmn.h" -#include "wx/utils.h" +#include "wx/utils.h" // for wxGetDisplay() +#include "wx/fontutil.h" -#include - -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) -#endif // ---------------------------------------------------------------------------- // private classes @@ -39,7 +45,7 @@ // For every wxFont, there must be a font for each display and scale requested. // So these objects are stored in wxFontRefData::m_fonts -class wxXFont: public wxObject +class wxXFont : public wxObject { public: wxXFont(); @@ -359,17 +365,18 @@ 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, M_FONTDATA->m_underlined, - _T(""), + wxT(""), M_FONTDATA->m_encoding); if ( !font ) { - wxFAIL_MSG( _T("Could not allocate even a default font -- something is wrong.") ); + wxFAIL_MSG( wxT("Could not allocate even a default font -- something is wrong.") ); return (wxXFont*) NULL; }