diff options
Diffstat (limited to 'xml/object.c')
-rw-r--r-- | xml/object.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xml/object.c b/xml/object.c index 6ea0ab6..4a3beec 100644 --- a/xml/object.c +++ b/xml/object.c @@ -144,14 +144,13 @@ const cFont *cxObject::Font(void) const { const cFont *font; - if ((font = cText2SkinFont::Load(SkinPath() + "/fonts", mFontFace, mFontSize, mFontWidth)) - != NULL) - return font; - if ((font = cText2SkinFont::Load(SkinPath() + "/" + mSkin->Name(), mFontFace, mFontSize, mFontWidth)) != NULL) return font; - + + if ((font = cText2SkinFont::Load(SkinPath() + "/fonts", mFontFace, mFontSize, mFontWidth)) != NULL) + return font; + return cFont::GetFont(fontOsd); } |