allow different background for eslider
[enigma2.git] / lib / gui / eslider.cpp
index f699389..7f3bb34 100644 (file)
@@ -31,12 +31,14 @@ int eSlider::event(int event, void *data, void *data2)
        case evtPaint:
        {
                ePtr<eWindowStyle> style;
-               gPainter &painter = *(gPainter*)data2;
 
                eSize s(size());
-
                getStyle(style);
-               style->paintBackground(painter, ePoint(0,0), s);
+                       /* paint background */
+               eWidget::event(evtPaint, data, data2);
+
+               gPainter &painter = *(gPainter*)data2;
+
                style->setStyle(painter, eWindowStyle::styleLabel); // TODO - own style
                
                if (!m_pixmap)