mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user