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:
2017-04-07 21:44:32 +02:00
parent 83cfd68f88
commit 511486c404
2 changed files with 13 additions and 2 deletions

View File

@@ -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