*CTextBox: some small style clean ups for better readability

This commit is contained in:
2012-09-16 22:10:31 +02:00
parent 342fa5f88a
commit 323393548d

View File

@@ -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();