CTextBox: Remove workaround for minimally text_border_width

- Default value is now 1 in CComponentsText
This commit is contained in:
Michael Liebmann
2013-06-12 00:36:37 +02:00
parent f0de4567ae
commit ba1e514747
2 changed files with 6 additions and 4 deletions

View File

@@ -220,10 +220,7 @@ void CTextBox::setTextFont(Font* font_text)
void CTextBox::setTextBorderWidth(int border)
{
/* we need a minimal borderwith of 1px because the edge-smoothing
(or fontrenderer?) otherwise will paint single pixels outside the
defined area. e.g. 'j' is leaving such residues */
text_border_width = (border > 0) ? border : 1;
text_border_width = border;
//Initialise the window frames first and than refresh text line array
initFramesAndTextArray();
}