diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index e9471a9a5..2f8fd3234 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -93,7 +93,12 @@ void CComponentsText::initVarText() ct_text = ""; ct_old_text = ct_text; ct_text_mode = CTextBox::AUTO_WIDTH; + + /* 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 */ ct_text_border = 1; + ct_col_text = COL_MENUCONTENT; ct_text_sent = false; ct_paint_textbg = false; diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index cba6e25ff..b1a2d415e 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -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(); }