From: Andreas Monzner Date: Fri, 26 Oct 2007 11:11:56 +0000 (+0000) Subject: small fix (no visible selection in tuner configuration in start wizzard) X-Git-Tag: 2.6.0~1794 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/9cebdd89e6dc9660adf6c34c12da99b6fdc6a016?ds=sidebyside small fix (no visible selection in tuner configuration in start wizzard) --- diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 7c192a03..8331ca11 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -165,8 +165,10 @@ void eListboxPythonStringContent::paint(gPainter &painter, eWindowStyle &style, painter.clear(); } else { - if (local_style && local_style->m_background) + if (local_style->m_background) painter.blit(local_style->m_background, offset, eRect(), gPainter::BT_ALPHATEST); + else if (selected && !local_style->m_selection) + painter.clear(); } if (m_list && cursorValid()) @@ -284,8 +286,10 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, painter.clear(); } else { - if (local_style && local_style->m_background) + if (local_style->m_background) painter.blit(local_style->m_background, offset, eRect(), gPainter::BT_ALPHATEST); + else if (selected && !local_style->m_selection) + painter.clear(); } if (m_list && cursorValid())