CComponentsFrmClock: Rework font handling

- Use setClockFont(enum FONT_TYPES) for selection of neutrino fonts
- Use setClockFontSize(size) for Dynamic Font


Origin commit data
------------------
Commit: 1bfb6d2cd3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
This commit is contained in:
Michael Liebmann
2013-11-27 00:19:05 +01:00
parent 658f794ef5
commit e8d55630df
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();