X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/44433f650cd3e5f9f66253b74d194fcb01578595..3cddda083f4ace59e279f9f4f6ae12bad079d33b:/lib/gui/ewidgetdesktop.cpp diff --git a/lib/gui/ewidgetdesktop.cpp b/lib/gui/ewidgetdesktop.cpp index 8c489eb3..24fb334b 100644 --- a/lib/gui/ewidgetdesktop.cpp +++ b/lib/gui/ewidgetdesktop.cpp @@ -55,7 +55,7 @@ void eWidgetDesktop::invalidate(const gRegion ®ion) m_dirty_region |= region; } -void eWidgetDesktop::setBackgroundColor(gColor col) +void eWidgetDesktop::setBackgroundColor(gRGB col) { m_background_color = col; @@ -70,6 +70,13 @@ void eWidgetDesktop::setBackgroundColor(gColor col) } } +void eWidgetDesktop::setPalette(gPixmap &pm) +{ + ASSERT(m_dc); + gPainter painter(m_dc); + painter.setPalette(&pm); +} + void eWidgetDesktop::paint() { gPainter painter(m_dc);