mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
CComponentsText: add explicit kill methode and add ct_force_text_paint
After hide or kill text will does not paint without ct_force_text_paint,
so it is required to add this.
Origin commit data
------------------
Commit: 4c71edbd3c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-23 (Mon, 23 Jan 2017)
This commit is contained in:
@@ -274,7 +274,8 @@ bool CComponentsText::setTextFromFile(const string& path_to_textfile, const int
|
||||
void CComponentsText::paintText(bool do_save_bg)
|
||||
{
|
||||
initCCText();
|
||||
paintInit(do_save_bg);
|
||||
if (!is_painted)
|
||||
paintInit(do_save_bg);
|
||||
|
||||
if (ct_text_sent && cc_allow_paint)
|
||||
ct_textbox->paint();
|
||||
@@ -291,8 +292,20 @@ void CComponentsText::hide()
|
||||
{
|
||||
if (ct_textbox)
|
||||
ct_textbox->hide();
|
||||
ct_old_text = "";
|
||||
CComponents::hide();
|
||||
|
||||
ct_old_text.clear();
|
||||
CCDraw::hide();
|
||||
ct_force_text_paint = true;
|
||||
}
|
||||
|
||||
void CComponentsText::kill()
|
||||
{
|
||||
if (ct_textbox)
|
||||
ct_textbox->hide();
|
||||
|
||||
ct_old_text.clear();
|
||||
CCDraw::kill();
|
||||
ct_force_text_paint = true;
|
||||
}
|
||||
|
||||
void CComponentsText::setXPos(const int& xpos)
|
||||
|
Reference in New Issue
Block a user