aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-09 11:04:00 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-09 11:04:00 +0000
commit29ec53f34486f08c1655b64ba95a949c1e1094af (patch)
tree864469ad8077d8479d0526366dbd2a6c61c98dc5 /lib/gui/elistboxcontent.cpp
parent08a14fad38e5c65b5de7875b1d9e20117f5a7513 (diff)
downloadenigma2-29ec53f34486f08c1655b64ba95a949c1e1094af.tar.gz
enigma2-29ec53f34486f08c1655b64ba95a949c1e1094af.zip
dont ignore background color when transparent=1 is set.. (needed for font
anti aliasing)
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
-rw-r--r--lib/gui/elistboxcontent.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 39509064..9bfe81df 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -504,21 +504,20 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l
{
if (selected && sel_clip.valid())
{
- bool clear=true;
painter.clip(rc-sel_clip);
if (pbackColor)
{
int color = PyInt_AsLong(pbackColor);
painter.setBackgroundColor(gRGB(color));
} // transparent background?
- else if (local_style && local_style->m_transparent_background)
- clear=false;
// if we have a local background color set, use that.
else if (local_style && local_style->m_background_color_set)
painter.setBackgroundColor(local_style->m_background_color);
else
style.setStyle(painter, eWindowStyle::styleListboxNormal);
- if (clear)
+ if (local_style && local_style->m_transparent_background)
+ ;
+ else
painter.clear();
painter.clippop();
painter.clip(rc&sel_clip);
@@ -549,22 +548,18 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l
}
else
{
- bool clear=true;
style.setStyle(painter, eWindowStyle::styleListboxNormal);
if (pbackColor)
{
int color = PyInt_AsLong(pbackColor);
painter.setBackgroundColor(gRGB(color));
}/* if we have a local background color set, use that. */
- else if (local_style)
- {
- if (local_style->m_transparent_background)
- clear=false;
- else if (local_style->m_background_color_set)
- painter.setBackgroundColor(local_style->m_background_color);
- }
+ else if (local_style && local_style->m_background_color_set)
+ painter.setBackgroundColor(local_style->m_background_color);
/* if we have no transparent background */
- if (clear)
+ if (local_style && local_style->m_transparent_background)
+ ;
+ else
painter.clear();
}
}