mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsFrmClock: add members to control segment refreshing on interval
Refreshing of segments is now enabled on default. In certain conditions this should be better.
This commit is contained in:
@@ -87,6 +87,9 @@ CComponentsFrmClock::CComponentsFrmClock( const int& x_pos,
|
||||
//set default text background behavior
|
||||
cc_txt_save_screen = false;
|
||||
|
||||
//enable refresh of all segments on each interval as default
|
||||
cl_force_repaint = true;
|
||||
|
||||
//set default running clock properties
|
||||
cl_interval = interval_seconds;
|
||||
cl_timer = NULL;
|
||||
@@ -255,7 +258,7 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
//set size, text, color of current item
|
||||
lbl->setDimensionsAll(x_tmp, y_tmp, w_tmp, h_tmp);
|
||||
lbl->setColorAll(col_frame, col_body, col_shadow);
|
||||
lbl->forceTextPaint(false);
|
||||
lbl->forceTextPaint(cl_force_repaint);
|
||||
lbl->setText(stmp, CTextBox::CENTER, cl_font, cl_col_text, cl_font_style);
|
||||
|
||||
//init background behavior of segment
|
||||
|
Reference in New Issue
Block a user