ewidgetdesktop: don't abort if no target_pixmap is set
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 16 Nov 2010 13:14:18 +0000 (14:14 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 16 Nov 2010 16:15:39 +0000 (17:15 +0100)
lib/gui/ewidgetdesktop.cpp

index 98bc1f7dce08334776d40e6002ec6968d21c3ef0..08bd04740fcfc8c33d4d5ba49c6223a2311877c7 100644 (file)
@@ -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;