X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..32193feb839f5597211caad34e0e289f6273d9a5:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index 3b690765e4..f7df581fb6 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -21,13 +21,20 @@ #pragma implementation "font.h" #endif +#ifdef __VMS +#pragma message disable nosimpint +#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 +#include "wx/utils.h" // for wxGetDisplay() +#include "wx/fontutil.h" #if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) @@ -39,7 +46,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,7 +366,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,