X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cbab64109b007fa1d939fe588f5e79f9105b915..c1981a2fa408700243400606f93679b2befe1ac2:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 35a7060ab6..def79ff7fa 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -474,14 +474,8 @@ void wxFontRefData::SetNativeFontInfo(const wxNativeFontInfo& info) IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) -void wxFont::Init() -{ -} - wxFont::wxFont(const wxNativeFontInfo& info) { - Init(); - (void) Create(info.GetXFontName()); } @@ -763,7 +757,7 @@ GdkFont *wxFont::GetInternalFont( float scale ) const { GdkFont *font = (GdkFont *) NULL; - wxCHECK_MSG( Ok(), font, wxT("invalid font") ) + wxCHECK_MSG( Ok(), font, wxT("invalid font") ); long int_scale = long(scale * 100.0 + 0.5); // key for fontlist int point_scale = (int)((M_FONTDATA->m_pointSize * 10 * int_scale) / 100);