// ----------------------------------------------------------------------------
// FIXME: for now, always use single font
-static IDirectFBFontPtr gs_font = NULL;
+static wxIDirectFBFontPtr gs_font = NULL;
static unsigned gs_fontRefCnt = 0;
class wxFontRefData : public wxObjectRefData
// FIXME: always use default font for now
if ( !gs_font )
{
- IDirectFBPtr dfb(wxTheApp->GetDirectFBInterface());
-
DFBFontDescription desc;
desc.flags = (DFBFontDescriptionFlags)0;
- IDirectFBFontPtr f;
- if ( DFB_CALL( dfb->CreateFont(dfb, NULL, &desc, &f) ) )
+ wxIDirectFBFontPtr f(wxIDirectFB::Get()->CreateFont(NULL, &desc));
+ if ( f )
gs_font = f;
}
if ( gs_font ) // the above may fail
}
wxNativeFontInfo m_info;
- IDirectFBFontPtr m_font;
+ wxIDirectFBFontPtr m_font;
};
// accessors
// ----------------------------------------------------------------------------
-IDirectFBFontPtr wxFont::GetDirectFBFont() const
+wxIDirectFBFontPtr wxFont::GetDirectFBFont() const
{
wxCHECK_MSG( Ok(), NULL, wxT("invalid font") );