mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CMsgBox: ensure repaint of background
This fixes "transparent holes", because textbox object is responsible
for text.
The problem here is that the message box has a fixed width and text box
width is not really considered. This should be fixed, but CMsgBox class
is used only by CMovieinfo class and this should be enough for the moment.
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab7c67d2b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-07-27 (Wed, 27 Jul 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -619,6 +619,13 @@ void CMsgBox::refresh(void)
|
||||
refreshTitle();
|
||||
refreshFoot();
|
||||
|
||||
//draw body
|
||||
m_pcWindow->paintBoxRel( m_cBoxFrameText.iX,
|
||||
m_cBoxFrameText.iY,
|
||||
m_cBoxFrameText.iWidth,
|
||||
m_cBoxFrameText.iHeight,
|
||||
COL_MENUCONTENT_PLUS_0);
|
||||
|
||||
// rep-draw textbox if there is one
|
||||
if(m_pcTextBox != NULL)
|
||||
{
|
||||
@@ -750,7 +757,6 @@ bool CMsgBox::setText(const std::string* newText)
|
||||
// update text in textbox if there is one
|
||||
if(m_pcTextBox != NULL && newText != NULL)
|
||||
{
|
||||
lresult = m_pcTextBox->setText(newText);
|
||||
if(m_nMode & AUTO_WIDTH || m_nMode & AUTO_HIGH)
|
||||
{
|
||||
/* window might changed in size ...*/
|
||||
@@ -768,6 +774,8 @@ bool CMsgBox::setText(const std::string* newText)
|
||||
m_cBoxFrame.iY = g_settings.screen_StartY + ((g_settings.screen_EndY - g_settings.screen_StartY - m_cBoxFrame.iHeight) >>1);
|
||||
}
|
||||
}
|
||||
|
||||
lresult = m_pcTextBox->setText(newText);
|
||||
}
|
||||
|
||||
return(lresult);
|
||||
|
Reference in New Issue
Block a user