X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e97e6073b3b999ad8f083cb7ac48ad3bb5728534..f06832c1b6caae13c0bddf8f3a8aeb1114f4392b:/src/x11/font.cpp diff --git a/src/x11/font.cpp b/src/x11/font.cpp index 3b0f09338f..0855e067a3 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -93,7 +93,7 @@ wxXFont::~wxXFont() // wxFontRefData // ---------------------------------------------------------------------------- -class wxFontRefData: public wxObjectRefData +class wxFontRefData: public wxGDIRefData { friend class wxFont; @@ -402,7 +402,7 @@ void wxFontRefData::InitFromNative() } wxFontRefData::wxFontRefData( const wxFontRefData& data ) - : wxObjectRefData() + : wxGDIRefData() { m_pointSize = data.m_pointSize; m_family = data.m_family; @@ -686,6 +686,16 @@ wxFont::~wxFont() { } +wxGDIRefData *wxFont::CreateGDIRefData() const +{ + return new wxFontRefData; +} + +wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxFontRefData(*wx_static_cast(const wxFontRefData *, data)); +} + // ---------------------------------------------------------------------------- // change the font attributes // ----------------------------------------------------------------------------