aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-05-14 22:08:13 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-05-14 22:08:13 +0000
commitfdec43a4957e03cf120dfe55fb98735fdce21796 (patch)
tree6dba28516f9b4ae29982fb67513dd02a8ce78e87
parent505654a8df4293feffc1ae477f7068a79f08853b (diff)
downloadenigma2-fdec43a4957e03cf120dfe55fb98735fdce21796.tar.gz
enigma2-fdec43a4957e03cf120dfe55fb98735fdce21796.zip
prepare next background color for transparent widgets
-rw-r--r--lib/gui/ewidget.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/gui/ewidget.cpp b/lib/gui/ewidget.cpp
index e0504296..30602c55 100644
--- a/lib/gui/ewidget.cpp
+++ b/lib/gui/ewidget.cpp
@@ -341,8 +341,13 @@ int eWidget::event(int event, void *data, void *data2)
}
} else
{
- if (m_have_background_color)
- painter.setBackgroundColor(m_background_color);
+ eWidget *w = this;
+
+ while (w && !w->m_have_background_color)
+ w = w->m_parent;
+
+ if (w)
+ painter.setBackgroundColor(w->m_background_color);
}
break;
}