mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CComponentsInfoBox: fix applying of properties
Some properties were not applied if cctext was already exists, eg. after changed theme
This commit is contained in:
@@ -137,8 +137,12 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
||||
if (!ct_text.empty()){
|
||||
if (cctext)
|
||||
delete cctext;
|
||||
cctext = NULL;
|
||||
}
|
||||
|
||||
if (cctext == NULL)
|
||||
cctext = new CComponentsText();
|
||||
|
||||
cctext->setText(ct_text, ct_text_mode, ct_font);
|
||||
cctext->doPaintTextBoxBg(ct_paint_textbg);
|
||||
cctext->doPaintBg(false);
|
||||
@@ -155,4 +159,3 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
||||
cctext->allowPaint(cc_allow_paint);
|
||||
cctext->paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user