CComponentsFrmClock: Rework font handling

- Use setClockFont(enum FONT_TYPES) for selection of neutrino fonts
- Use setClockFontSize(size) for Dynamic Font
This commit is contained in:
M. Liebmann
2013-11-27 00:19:05 +01:00
parent 0c18d4a6db
commit 1bfb6d2cd3
6 changed files with 73 additions and 29 deletions

View File

@@ -58,8 +58,7 @@ void CInfoClock::initVarInfoClock()
void CInfoClock::Init()
{
int x_old = x, y_old = y, width_old = width, height_old = height;
cl_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
CVolumeHelper::getInstance()->refresh();
CVolumeHelper::getInstance()->refresh(cl_font);
CVolumeHelper::getInstance()->getInfoClockDimensions(&x, &y, &width, &height);
if ((x_old != x) || (y_old != y) || (width_old != width) || (height_old != height)) {
cleanCCForm();