mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
CTextBox: try to fix possible background artefacts in transparent mode
supplement to: - textbox: fix box width in round corners mode
Radius was always subtracted in all text modes.
TODO: value of m_nBgRadius itself is not considered at the moment.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7031dc1da4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -588,7 +588,7 @@ void CTextBox::refreshText(void)
|
||||
//bg variables
|
||||
int ax = m_cFrameTextRel.iX+m_cFrame.iX;
|
||||
int ay = m_cFrameTextRel.iY+m_cFrame.iY;
|
||||
int dx = m_old_cText != m_cText || m_nNrOfPages>1 ? m_cFrameTextRel.iWidth : m_nMaxTextWidth - m_nBgRadius;
|
||||
int dx = m_old_cText != m_cText || m_nNrOfPages>1 ? m_cFrameTextRel.iWidth : m_nMaxTextWidth - (m_nMode & SCROLL ? m_nBgRadius : 0);
|
||||
int dy = m_cFrameTextRel.iHeight;
|
||||
|
||||
//avoid artefacts in transparent cornes
|
||||
|
Reference in New Issue
Block a user