From: Felix Domke Date: Sun, 14 May 2006 22:08:13 +0000 (+0000) Subject: prepare next background color for transparent widgets X-Git-Tag: 2.6.0~3428 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/fdec43a4957e03cf120dfe55fb98735fdce21796 prepare next background color for transparent widgets --- 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; }