mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*CTextBox: move framebuffer define only into initVar
framebuffer = NULL was called in all constructors, so it should be enough to define this only at one point.
This commit is contained in:
@@ -75,7 +75,6 @@ CTextBox::CTextBox(const char * text, Font* font_text, const int pmode,
|
|||||||
//TRACE("[CTextBox] new\r\n");
|
//TRACE("[CTextBox] new\r\n");
|
||||||
initVar();
|
initVar();
|
||||||
|
|
||||||
frameBuffer = NULL;
|
|
||||||
max_width = 0;
|
max_width = 0;
|
||||||
|
|
||||||
if(text != NULL)
|
if(text != NULL)
|
||||||
@@ -124,8 +123,6 @@ CTextBox::CTextBox(const char * text)
|
|||||||
//TRACE("[CTextBox] new\r\n");
|
//TRACE("[CTextBox] new\r\n");
|
||||||
initVar();
|
initVar();
|
||||||
|
|
||||||
frameBuffer = NULL;
|
|
||||||
|
|
||||||
if(text != NULL)
|
if(text != NULL)
|
||||||
m_cText = *text;
|
m_cText = *text;
|
||||||
|
|
||||||
@@ -156,6 +153,8 @@ CTextBox::~CTextBox()
|
|||||||
void CTextBox::initVar(void)
|
void CTextBox::initVar(void)
|
||||||
{
|
{
|
||||||
//TRACE("[CTextBox]->InitVar\r\n");
|
//TRACE("[CTextBox]->InitVar\r\n");
|
||||||
|
frameBuffer = NULL;
|
||||||
|
|
||||||
m_showTextFrame = 0;
|
m_showTextFrame = 0;
|
||||||
m_nNrOfNewLine = 0;
|
m_nNrOfNewLine = 0;
|
||||||
m_nMaxLineWidth = 0;
|
m_nMaxLineWidth = 0;
|
||||||
|
Reference in New Issue
Block a user