summaryrefslogtreecommitdiff
path: root/xml/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'xml/object.c')
-rw-r--r--xml/object.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xml/object.c b/xml/object.c
index ec69fe7..421c00d 100644
--- a/xml/object.c
+++ b/xml/object.c
@@ -116,7 +116,7 @@ bool cxObject::ParseFontFace(const std::string &Text)
{
int size = 0, width = 0, pos;
std::string face = Text;
- if ((pos = face.find(':')) != -1) {
+ if ((pos = face.find('@')) != -1) {
std::string s = face.substr(pos + 1);
const char *p = s.c_str();
char *end;
@@ -152,11 +152,7 @@ const cFont *cxObject::Font(void) const
{
const cFont *font;
- if ((font = cText2SkinFont::Load(SkinPath() + "/" + mSkin->Name(), mFontFace, mFontSize,
- mFontWidth)) != NULL)
- return font;
-
- if ((font = cText2SkinFont::Load(SkinPath() + "/fonts", mFontFace, mFontSize, mFontWidth)) != NULL)
+ if ((font = cText2SkinFont::Load(mFontFace, mFontSize)) != NULL)
return font;
return cFont::GetFont(fontOsd);