aboutsummaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-11-16 14:14:18 +0100
committerAndreas Oberritter <obi@opendreambox.org>2010-11-16 17:15:39 +0100
commitcf57753fe26b8468048598a53124d876f216bc3d (patch)
treeca048caf71d5d1f9b6a762af2aa54267989a3d3e /lib/gui
parent696569c4984cf4fb28c5e839de77eb31ae34f1a1 (diff)
downloadenigma2-cf57753fe26b8468048598a53124d876f216bc3d.tar.gz
enigma2-cf57753fe26b8468048598a53124d876f216bc3d.zip
ewidgetdesktop: don't abort if no target_pixmap is set
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/ewidgetdesktop.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gui/ewidgetdesktop.cpp b/lib/gui/ewidgetdesktop.cpp
index 98bc1f7d..08bd0474 100644
--- a/lib/gui/ewidgetdesktop.cpp
+++ b/lib/gui/ewidgetdesktop.cpp
@@ -381,7 +381,10 @@ void eWidgetDesktop::makeCompatiblePixmap(gPixmap &pm)
ePtr<gPixmap> target_pixmap;
m_screen.m_dc->getPixmap(target_pixmap);
- ASSERT(target_pixmap);
+ if (!target_pixmap) {
+ eDebug("no target pixmap! assuming bpp > 8 for accelerated graphics.");
+ return;
+ }
if (target_pixmap->surface && target_pixmap->surface->bpp > 8)
return;