- textbox: don't accept boxes with no borderwidth

This commit is contained in:
svenhoefer
2013-05-08 00:30:58 +02:00
parent d802b85bbc
commit 050df14f8d

View File

@@ -220,7 +220,10 @@ void CTextBox::setTextFont(Font* font_text)
void CTextBox::setTextBorderWidth(int border) void CTextBox::setTextBorderWidth(int border)
{ {
text_border_width = 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;
//Initialise the window frames first and than refresh text line array //Initialise the window frames first and than refresh text line array
initFramesAndTextArray(); initFramesAndTextArray();
} }