mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CTextBox: Remove workaround for minimally text_border_width
- Default value is now 1 in CComponentsText
Origin commit data
------------------
Commit: ba1e514747
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-12 (Wed, 12 Jun 2013)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user