- epgplus: use BIGFONT_FACTOT to calculate big fonts

This commit is contained in:
vanhofen
2017-04-08 14:11:27 +02:00
committed by svenhoefer
parent ddd803d8a3
commit 4394b7752b

View File

@@ -670,7 +670,7 @@ void EpgPlus::init()
if (bigfont && (fontSettingTable[i].settingID == EpgPlus::EPGPlus_channelentry_font || if (bigfont && (fontSettingTable[i].settingID == EpgPlus::EPGPlus_channelentry_font ||
fontSettingTable[i].settingID == EpgPlus::EPGPlus_channelevententry_font)) fontSettingTable[i].settingID == EpgPlus::EPGPlus_channelevententry_font))
{ {
size = size * 3 / 2; /* increase font size for channel name and event title */ size = (int)(size * BIGFONT_FACTOR); /* increase font size for channel name and event title */
} }
std::string family = g_fontRenderer->getFamily(FileName.c_str()); std::string family = g_fontRenderer->getFamily(FileName.c_str());
Font *font = g_fontRenderer->getFont(family.c_str(), fontSettingTable[i].style, size); Font *font = g_fontRenderer->getFont(family.c_str(), fontSettingTable[i].style, size);