mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*CTextBox: some small style clean ups for better readability
This commit is contained in:
@@ -78,8 +78,12 @@ CTextBox::CTextBox(const char * text, Font* font_text, const int pmode,
|
||||
frameBuffer = NULL;
|
||||
max_width = 0;
|
||||
|
||||
if(text != NULL) m_cText = text;
|
||||
if(font_text != NULL) m_pcFontText = font_text;
|
||||
if(text != NULL)
|
||||
m_cText = text;
|
||||
|
||||
if(font_text != NULL)
|
||||
m_pcFontText = font_text;
|
||||
|
||||
if(position != NULL)
|
||||
{
|
||||
m_cFrame = *position;
|
||||
@@ -91,9 +95,7 @@ CTextBox::CTextBox(const char * text, Font* font_text, const int pmode,
|
||||
|
||||
/* in case of auto line break, we do no support auto width yet */
|
||||
if( !(pmode & NO_AUTO_LINEBREAK))
|
||||
{
|
||||
m_nMode = m_nMode & ~AUTO_WIDTH; /* delete any AUTO_WIDTH*/
|
||||
}
|
||||
|
||||
#if 0
|
||||
TRACE(" Mode: ");
|
||||
@@ -123,7 +125,9 @@ CTextBox::CTextBox(const char * text)
|
||||
initVar();
|
||||
|
||||
frameBuffer = NULL;
|
||||
if(text != NULL) m_cText = *text;
|
||||
|
||||
if(text != NULL)
|
||||
m_cText = *text;
|
||||
|
||||
/* Initialise the window frames first */
|
||||
initFramesRel();
|
||||
|
Reference in New Issue
Block a user