summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 56598ade1..565391ed9 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -1205,6 +1205,8 @@ ThemeInfo *Theme::loadInfo(const std::string &themeName)
ThemeInfo *info = new ThemeInfo();
+ const std::string fontSize2 = "fontSize_" + mScreenDensity;
+ const std::string npcfontSize2 = "npcfontSize_" + mScreenDensity;
for_each_xml_child_node(infoNode, rootNode)
{
if (xmlNameEqual(infoNode, "name"))
@@ -1227,6 +1229,10 @@ ThemeInfo *Theme::loadInfo(const std::string &themeName)
readIntValue(fontSize);
else if (xmlNameEqual(infoNode, "npcfontSize"))
readIntValue(npcfontSize);
+ else if (xmlNameEqual(infoNode, fontSize2.c_str()))
+ readIntValue(fontSize);
+ else if (xmlNameEqual(infoNode, npcfontSize2.c_str()))
+ readIntValue(npcfontSize);
}
return info;
}