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;
|
frameBuffer = NULL;
|
||||||
max_width = 0;
|
max_width = 0;
|
||||||
|
|
||||||
if(text != NULL) m_cText = text;
|
if(text != NULL)
|
||||||
if(font_text != NULL) m_pcFontText = font_text;
|
m_cText = text;
|
||||||
|
|
||||||
|
if(font_text != NULL)
|
||||||
|
m_pcFontText = font_text;
|
||||||
|
|
||||||
if(position != NULL)
|
if(position != NULL)
|
||||||
{
|
{
|
||||||
m_cFrame = *position;
|
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 */
|
/* in case of auto line break, we do no support auto width yet */
|
||||||
if( !(pmode & NO_AUTO_LINEBREAK))
|
if( !(pmode & NO_AUTO_LINEBREAK))
|
||||||
{
|
|
||||||
m_nMode = m_nMode & ~AUTO_WIDTH; /* delete any AUTO_WIDTH*/
|
m_nMode = m_nMode & ~AUTO_WIDTH; /* delete any AUTO_WIDTH*/
|
||||||
}
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
TRACE(" Mode: ");
|
TRACE(" Mode: ");
|
||||||
@@ -123,7 +125,9 @@ CTextBox::CTextBox(const char * text)
|
|||||||
initVar();
|
initVar();
|
||||||
|
|
||||||
frameBuffer = NULL;
|
frameBuffer = NULL;
|
||||||
if(text != NULL) m_cText = *text;
|
|
||||||
|
if(text != NULL)
|
||||||
|
m_cText = *text;
|
||||||
|
|
||||||
/* Initialise the window frames first */
|
/* Initialise the window frames first */
|
||||||
initFramesRel();
|
initFramesRel();
|
||||||
|
Reference in New Issue
Block a user