CTextBox: fix calculated but not used parameter

This commit is contained in:
2015-07-17 17:07:14 +02:00
parent 4e002bdf66
commit 672ae3fdb1

View File

@@ -640,7 +640,7 @@ void CTextBox::refreshText(void)
{ {
//calculate centered xpos //calculate centered xpos
if( m_nMode & CENTER ){ if( m_nMode & CENTER ){
x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i]))>>1, m_utf8_encoded) - text_Hborder_width; x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i], m_utf8_encoded))>>1) - text_Hborder_width;
} }
else if ( m_nMode & RIGHT ){ else if ( m_nMode & RIGHT ){
x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i]), m_utf8_encoded) - text_Hborder_width*2); x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i]), m_utf8_encoded) - text_Hborder_width*2);