mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CTextBox: Remove workaround for minimally text_border_width
- Default value is now 1 in CComponentsText
This commit is contained in:
@@ -93,7 +93,12 @@ void CComponentsText::initVarText()
|
|||||||
ct_text = "";
|
ct_text = "";
|
||||||
ct_old_text = ct_text;
|
ct_old_text = ct_text;
|
||||||
ct_text_mode = CTextBox::AUTO_WIDTH;
|
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_text_border = 1;
|
||||||
|
|
||||||
ct_col_text = COL_MENUCONTENT;
|
ct_col_text = COL_MENUCONTENT;
|
||||||
ct_text_sent = false;
|
ct_text_sent = false;
|
||||||
ct_paint_textbg = false;
|
ct_paint_textbg = false;
|
||||||
|
@@ -220,10 +220,7 @@ void CTextBox::setTextFont(Font* font_text)
|
|||||||
|
|
||||||
void CTextBox::setTextBorderWidth(int border)
|
void CTextBox::setTextBorderWidth(int border)
|
||||||
{
|
{
|
||||||
/* we need a minimal borderwith of 1px because the edge-smoothing
|
text_border_width = border;
|
||||||
(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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user